KSC Open API
Kaspersky Security Center API description
ServerHierarchy::DelServer ( int  lServer)

Remove specified secondary server.

This action only removes the secondary Administration Server registration information from the primary Administration Server. To remove the primary Administration Server settings from the secondary Administration Server, use HostGroup.SS_Write to overwrite the primary Administration Server connection settings section and set "KLSRV_MASTER_SRV_USE" to false.
See Secondary Administration Server registration for details.

Parameters:
lServerSecondary Administration Server ID
See also:
Sample. Creating and destroying primary/secondary relation.