Available for: Content Management Server
Task: The procedure deletes a file. If the file is a folder, it can only be deleted if it does not contain any files.
Additional information: The command is based on the
obj delete
command whose restrictions apply here.
Syntax:
rm objIdOrPath
Function parameters:
objIdOrPath
is the ID of the file or its
path. The path must be absolute, i.e. start with a slash.Return value if successful: none
Necessary permissions: The user must have the
permissionRoot
permission for the file to be deleted.
Example:
CM>rm /cats