>>-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
- The directory must be empty.
- If the directory is successfully removed, the change and modification
times for the parent directory are updated.
- 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.
- 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"