Delete administration group.
Deletes specified administration group.
- Parameters:
-
nGroup |
Id of existing group to delete |
nFlags |
flags. May have following value
- 1 (default value) group is deleted only if it is empty, "empty"
means it doesn't contain subgroups, hosts, policies, tasks, slave
servers
- 2 delete group with subgroups, policies and tasks (supported by
Administration Server version 6 or higher)
- 3 delete group with subgroups, hosts, policies and tasks
(supported by Administration Server version 6 or higher)
|
See JScript call sample below.
...
var oGroups = new ActiveXObject("klakaut.KlAkGroups");
oGroups.AdmServer = ...
...
var lGroupId = ...
...
//Delete group
oGroups.RemoveGroup(lGroupId, 1);