Arbortext Command Language > Commands > remove_file
  
remove_file
remove_file [ -r-f] file1 [ file2]
remove_file deletes the file(s) specified by file1, file2, and so on. If a file name specifies a directory, remove_file will delete the directory if it is empty. You can only specify a single file at a time from a WebDAV resource. remove_file will not remove a group of WebDAV resources or a WebDAV collection (folder).
remove_file has the following options:
-r — Specifies that remove_file is to recursively delete all files and subdirectories in the specified directories and to delete the named directories themselves.
-f — Specifies that remove_file is to delete write-protected files without any warning or prompt.
rm is a synonym for remove_file.
Examples:
remove_file myfil
remove_file /usr/draft.xml
remove_file -r -f /usr
remove_file -r -f "$tempfile"
If you use a variable name in the command for the file name, place it in double quotes to be sure it's interpreted correctly.
Related topic
Opening, referencing, and saving files