rmfolder

You can use the rmfolder command to delete folders in the database.

Overview

You can use the command to delete folders and sub-folders that does not contain scheduling or security items. If not, the command is returned with an error. To remove a folder, you must unlock it.

Syntax and command line options

You can run the rmfolder command as follows:
ocli model rmfolder | rf foldername [;noask]
foldername
If you want to delete the folders under a specific folder, you must specify the name of that folder. You can use the forward slash before the foldername variable, to delete a folder in the root. To delete all folders and sub-folders in the database, specify a forward slash followed by an ampersand "/@".
noask
When you add the noask option as an argument, the agent does not ask for confirmation before it acts on each qualifying item.

Examples

  1. Run the following command to delete the RITS folder:
    ocli model rmfolder RITS
  2. Run the following command to delete the RITS folder located at the root:
    ocli model rmfolder /RITS
  3. Run the following command to delete all folders and sub-folders located at the root:
    ocli model rmfolder /@