RMDIR(I) − PWB/UNIX 3/15/72
NAME
rmdir − remove directory
SYNOPSIS
rmdir dir ...
DESCRIPTION
Rmdir removes (deletes) directories. The directory must be empty (except for the standard entries ‘.’ and ‘..’, which rmdir itself removes). Write permission is required in the directory in which the directory to be removed appears.
BUGS
Needs a −r flag.
Actually, write permission in the directory’s parent is not required.
Mildly unpleasant consequences can follow removal of your own or someone else’s current directory.