You can perform these actions manually in Kaspersky Security Center interface or automate removal using Kaspersky Security Center OpenAPI. Refer to the Knowledge Base for more details.
Remove the tenant from the Integration Server database, as well as remove the tenant protection infrastructure. The removal procedure is automated by means of the Integration Server REST API. When calling the REST API method, specify the removeTenantArtifacts=true parameter.
As a result of the procedure, the following actions are automatically performed:
Information about the tenant and the tenant virtual machines is deleted from the Integration Server database.
The following tenant protection infrastructure is removed from Kaspersky Security Center: virtual Administration Server and the account for connecting to it, the Multitenancy KSV LA → <Tenant name> folder and its contents (subfolders and administration groups, policies and tasks, and installation packages).
If there are no other tenants, the Multitenancy KSV LA folder is also deleted.