You can only remove a host group that is empty.
Determine which managed hosts and host groups to remove.
For example, remove the /web-server/host1 and /web-server/host2 managed hosts and the /web-server host group.
Remove the managed hosts and host groups.
$ changemgr remove [ -u username ] [ -p file ] [ -d domain ] \ topopath ... |
Specifies the path to a managed host or host group that is relative to the top of the selected administrative domain.
For descriptions of the other options, see How to Create a Host Group (Command Line).
Chris removes the /web-server/host1 and /web-server/host2 managed hosts and the /web-server host group.
$ changemgr remove /web-server/host1 /web-server/host2 \ /web-server |