KSC Open API
Kaspersky Security Center API description
RspAdUaRelation::RelationRemove ( wstring  wstrUaHostId,
wstring  wstrAdDomain 
)

Remove relation.

Removes the relation added by the KlXdroRspAdUaData::RelationAdd method

To list existing relations use SrvView Relation between Active Directory domain controllers and Update Agents

Parameters:
wstrUaHostIdGUID host name of the UA or empty string for Administration Server's Network Agent
wstrAdDomainActive Directory domain name in lowercase FQDN format, e.g. "mycompany.com"
Note:
if wstrUaHostId is empty then current session must target the physical server otherwise exception STDE_NOTPERM is thrown.
Exceptions:
STDE_NOTPERMOperation is prohibited (e.g. wstrUaHostId does not have UA role, or an attempt to access physical server in context of virtual one, or this feature is disabled)