Delete a tenantLast Updated January 26, 2025
When you delete a tenant from
VMware Workspace ONE Access
, you also delete the
resources created under it. So before deleting a tenant using the Tenant Management Controller
APIs, you must verify that it is not associated with a product.- Verify that all general prerequisites have been satisfied. See Tenant management usingVMware Aria Suite Lifecycle APIs.
- Verify thatVMware Workspace ONE Accesshas multi-tenancy enabled.
- Verify that you have the following input values for the tenant created inVMware Workspace ONE Access.
- vidmHostnameVMware Workspace ONE Accessdomain name.
- baseTenantHostnameVMware Workspace ONE Accessbase tenant or default tenant alias.
- VMware Workspace ONE Accessadministrator password.
- VMware Workspace ONE Accessadministrator user name.
- vidmHostHostname or load-balanced FQDN of theVMware Workspace ONE Accesshost.
- vidmOAuthServiceClientIdUse the default valueservice__Oauth2Client.
- vidmOAuthServiceClientSecretTo obtain the value, see the client configuration on the OAuth2 Client page inVMware Workspace ONE Access. From theVMware Workspace ONE Accessconsole Catalog tab, select .
- VMware Workspace ONE Accesstenant name.
The following procedure shows how to
check for tenant association with a product before deleting the tenant. To help you understand
the required input, the steps include example values.
- Check to see if the tenant is associated with a product.Examine the response. Thevmidis the request ID that you use to track your request.
- Assign the variable for the requestId.
- Use therequestIdto track your request.
- Examine the response.When the status showsCOMPLETED, check the values forresponseandmessage.
- If both are false, then the tenant is not associated with a product.
- If both are true, then the tenant is associated with a product and cannot be deleted.
In this example,"response":"false"and"message":"false"so you can delete the tenant. - Delete the tenant.Examine the response. Thevmidis the request ID that you use to track your request.
- Assign the variable for the requestId.
- Use therequestIDto track your request.Examine the response. When the status showsCOMPLETED, and the values forresponseandmessageshowTenant deleted successfully, the tenant is deleted.