KSC Open API
Kaspersky Security Center API description
AdTenantMngr::RemoveScannerTenant ( wstring  wstrScanningHost,
binary  binTenantID 
)

Remove tenant id for AD scaner.

Parameters:
[in]wstrScanningHost- Name ("KLHST_WKS_HOSTNAME") of the scanning host if scanning host is UA, empty string if scanning host is Administration Server.
[in]binTenantID- Tenant id to unassign, binary value of 16 bytes length.
Exceptions:
STDE_NOACCESSattempt to remove tenant without write access to the host