z/OS Using REXX and z/OS UNIX System Services
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


rmdir

z/OS Using REXX and z/OS UNIX System Services
SA23-2283-00

Read syntax diagramSkip visual syntax diagram
>>-rmdir--pathname---------------------------------------------><

Function

rmdir invokes the rmdir callable service to remove a directory. The directory must be empty.

Parameters

pathname
A pathname for the directory.

Usage notes

  1. The directory must be empty.
  2. If the directory is successfully removed, the change and modification times for the parent directory are updated.
  3. If the link count of the directory becomes zero and no process has the directory open, the directory itself is deleted. The space occupied by the directory is freed for new use.
  4. If any process has the directory open when the last link is removed, the directory itself is not removed until the last process closes the directory. New files cannot be created under a directory after the last link is removed, even if the directory is still open.

Example

To remove the directory /u/ehk0:
"rmdir /u/ehk0"

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014