.TH RMDIR 1 "1 April 1981"
rmdir, rm \- remove (unlink) directories or files
removes entries for the named directories, which must be empty.
removes the entries for one or more files from a directory.
If an entry was the last link to the file, the file is destroyed.
Removal of a file requires write permission in its directory,
but neither read nor write permission on the file itself.
If a file has no write permission and the standard input is a terminal,
its permissions are printed and a line is read from the standard input.
If that line begins with `y' the file is deleted, otherwise the file remains.
No questions are asked and no errors are reported when the
If a designated file is a directory,
an error comment is printed unless the optional argument
has been used. In that case,
recursively deletes the entire contents of the specified directory,
and the directory itself.
(interactive) option is in effect,
asks whether to delete each file, and, under
whether to examine each directory.
indicates that all the arguments following it are to be treated as
file names. This allows the specification of file names starting with
rm(1), unlink(2), rmdir(2)