Sun Management Center Change Manager 1.0 Administration Guide

- Previous: How to Move Files and Folders to Another Folder (Command Line)
- Next: How to View Folder Contents (Command Line)

## How to Delete Files and Folders (Command Line)

Folders must be empty before you delete them.

1. Determine which files and folders to delete.

   For example, delete the `web-server/host1.bmft` file, the `host2.bmft` file, and the `web-server/ApacheServer` folder.

2. Delete the files and folders.

       $ changemgr delete [ -u username ] [ -p file ] relfilepath ...

   relfilepath

     Specifies the path to a file or folder that is relative to the top of the Change Manager repository.

   For descriptions of the other options, see How to Create a Folder (Command Line).

### Example-Deleting Files and Folders

Suzi deletes the `web-server/host1.bmft` file, the `host2.bmft` file, and the `web-server/ApacheServer` folder.

    $ changemgr delete /web-server/host1.bmft \
    /web-server/host2.bmft /web-server/ApacheServer

- Previous: How to Move Files and Folders to Another Folder (Command Line)
- Next: How to View Folder Contents (Command Line)

- © 2010, Oracle Corporation and/or its affiliates