object hostgroup.massremove(object parameters)
This method allows to remove related objects from multiple host groups.
(object) Parameters containing the IDs of the host groups to update and the objects that should be removed.
|string/array||IDs of the host groups to be updated.|
|hostids||string/array||Hosts to remove from all host groups.|
|templateids||string/array||Templates to remove from all host groups.|
(object) Returns an object containing the IDs of the updated host groups under the
Remove two hosts from the given host groups.
CHostGroup::massRemove() in frontends/php/api/classes/CHostGroup.php.