KSC Open API
Kaspersky Security Center API description
ScanDiapasons::RemoveDiapason ( int  idDiapason)

Remove diapason.

Removes specified diapason.

Parameters:
idDiapason(int) id of diapason to remove

See also Python code with use of KlAkOAPI Python package below:

            server = KlAkOAPI.AdmServer.KlAkAdmServer.Create("https://ksc.example.com:13299", "username", "password", verify = False)
            oScanDiapasons = KlAkOAPI.ScanDiapasons.KlAkScanDiapasons(server)            
            idDiapason = ...
            oScanDiapasons.RemoveDiapason(idDiapason)
            
See also:
Sample. Creating ip subnets based on AD Site and Services.