RMDIR(1) — UNIX Programmer’s Manual
NAME
rmdir − remove an empty directory
SYNOPSIS
rmdir directory ...
DESCRIPTION
Rmdir removes an empty directory.
Once the directory has been removed, it is destroyed. Removal of a directory requires write permission in that directory.
Rmdir removes the named directories, which must be empty. Rmdir will otherwise report that the named directory is not empty.
Rmdir runs as a "setuid" root program.
EXAMPLE
rmdir dirname
removes the empty directory.
SEE ALSO
7th Edition — 1/26/82