RMDIR(1) BSD Reference Manual RMDIR(1)
r
\brm
\bmd
\bdi
\bir
\br - remove directories
S
\bSY
\bYN
\bNO
\bOP
\bPS
\bSI
\bIS
\bS
r
\brm
\bmd
\bdi
\bir
\br _
\bd_
\bi_
\br_
\be_
\bc_
\bt_
\bo_
\br_
\by _
\b._
\b._
\b.
D
\bDE
\bES
\bSC
\bCR
\bRI
\bIP
\bPT
\bTI
\bIO
\bON
\bN
The rmdir utility removes the directory entry specified by each _
\bd_
\bi_
\br_
\be_
\bc_
\bt_
\bo_
\br_
\by
argument, provided it is empty.
Arguments are processed in the order given. In order to remove both a
parent directory and a subdirectory of that parent, the subdirectory must
be specified first so the parent directory is empty when r
\brm
\bmd
\bdi
\bir
\br tries to
The r
\brm
\bmd
\bdi
\bir
\br utility exits with one of the following values:
0 Each directory entry specified by a dir operand referred to an emp-
ty directory and was removed successfully.
S
\bSE
\bEE
\bE A
\bAL
\bLS
\bSO
\bO
S
\bST
\bTA
\bAN
\bND
\bDA
\bAR
\bRD
\bDS
\bS
The r
\brm
\bmd
\bdi
\bir
\br command is expected to be IEEE Std1003.2 (``POSIX'') compati-