gtpo1m66Operations

ZFILE rm-Remove a Link to a File or Directory

Use this command to remove a link to a file or a directory from the file system.

Requirements and Restrictions

Format




-f
forces the removal of the specified file or directory regardless of the access permissions that are set.
Note:
This parameter does not override the access permissions for a parent directory; that is, if the access permissions for the parent directory of the specified file do not allow write authority, the -f parameter is ignored and the specified file will not be removed.

-r
recursively removes the specified file or directory. If you specify a directory, all files and subdirectories under that directory are removed. (This parameter is equivalent to the -R parameter.)

-R
recursively removes the specified file or directory. If you specify a directory, all files and subdirectories under that directory are removed. (This parameter is equivalent to the -r parameter.)

path
is the path name of the file or directory that you are removing from the file system.

Additional Information

Examples

The following example removes a file.

+---------------------------------------------------------------------------------------------+
|User:   ZFILE rm my.file                                                                     |
|                                                                                             |
|System: FILE0003I 13.12.45 rm my.file COMPLETED SUCCESSFULLY. NO OUTPUT TO DISPLAY           |
+---------------------------------------------------------------------------------------------+

The following example removes a directory and recursively removes any files or subdirectories contained in the directory.

+---------------------------------------------------------------------------------------------+
|User:   ZFILE rm -rf my.directory                                                            |
|                                                                                             |
|System: FILE0003I 15.10.13 rm -rf my.d... COMPLETED SUCCESSFULLY. NO OUTPUT TO DISPLAY       |
+---------------------------------------------------------------------------------------------+

Related Information