KSC Open API
Kaspersky Security Center API description
HostGroup::RemoveHosts ( array  pHostNames,
boolean  bForceDestroy 
)

Removes the multiple hosts.

The host records will be deleted only for the hosts located in the group "Unassigned computers" or its subgroups. Other hosts will be moved to the appropriate subgroups of the group "Unassigned computers".

Deprecated:
bForceDestroy argument is not used
Parameters:
pHostNames(array) array of the host names.
bForceDestroy(boolean) !DEPRECATED!

See also how to use the KlAkOAPI Python package:

            server = KlAkOAPI.AdmServer.KlAkAdmServer.Create("https://ksc.example.com:13299", "username", "password", verify = False)
            oHostGroup = KlAkOAPI.HostGroup.KlAkHostGroup(server)
            # fill array with host names
            oHosts2Delete = [...]
            # delete host records
            oHostGroup.RemoveHosts(oHosts2Delete, False)