Sun Management Center Change Manager 1.0 Administration Guide

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