Sun Management Center Change Manager 1.0.1 Administration Guide

- Previous: How to Move Managed Hosts and Host Groups to Another Host Group (Command Line)
- Next: How to View the Contents of a Host Group (Command Line)

## How to Remove Managed Hosts and Host Groups (Command Line)

You can only remove a host group that is empty.

1. 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.

2. Remove the managed hosts and host groups.

       $ changemgr remove [ -u username ] [ -p file ] [ -d domain ] \
       topopath ...

   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).

### Example—Removing Managed Hosts and Host Groups

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

- Previous: How to Move Managed Hosts and Host Groups to Another Host Group (Command Line)
- Next: How to View the Contents of a Host Group (Command Line)

- © 2010, Oracle Corporation and/or its affiliates