This method allows to delete host groups.
A host group can not be deleted if:
it is marked as internal;
it is used in a global script;
it is used in a correlation condition.
This method is only available to Admin and Super admin user types. Permissions to call the method can be revoked in user role settings. See for more information.
(array)
IDs of the host groups to delete.
Deleting multiple host groups
Delete two host groups.
Request:
Response:
"jsonrpc": "2.0",
"groupids": [
"107825"
]
},
CHostGroup::delete() in ui/include/classes/api/services/CHostGroup.php.