How to delete a tenant on Orchestrator?
The following SQL statement will mark a tenant deleted:
update Tenants
set IsDeleted = 1, IsActive = 0
where TenancyName = 'NameOfTenantYouWantToDelete'
set IsDeleted = 1, IsActive = 0
where TenancyName = 'NameOfTenantYouWantToDelete'
The tenant can re-activated because the record will not be deleted from the database.
If deletion of a tenant from database is required, following steps can be performed:
- Remove all objects like Machines, Robots and Processes from the Tenant that are needed to be removed. Also remove the license.
- Logon as a tenant admin to the Orchestrator
- Open the following url, which is the API endpoint : https://[orchestrator machine name]/swagger/ui/index
- Open the Tenants section
- Open [get /odata/Tenants] and click [Try it out!]. List of all tenants is returned. Find the tenant ID of the target tenant to remove
- Open [delete /odata/Tenants({Id})] and specify the tenant ID in the ID parameter, click [Try it out!]