maux
Star on GitHub Buy me a coffee

Manual / rmdir

rmdir(1)

RMDIR(1) General Commands Manual RMDIR(1)

rmdir - remove empty directories

rmdir [ -p ] dir

Rmdir removes the directory entry named by each dir operand, in order. Each one must already be empty; ProDOS's own DESTROY call refuses a non-empty directory. A dir that cannot be removed is reported and skipped; rmdir continues with the remaining operands.

Also remove each pathname component of dir from the right, in turn, as long as each removal succeeds -- so rmdir -p a/b/c removes c, then b, then a. Stripping stops at the volume name (never attempted) or at the first component that is not empty, whichever comes first; that stop is reported and counts as a failure like any other.

/usr/man/RMDIR this page

mkdir(1), rm(1)

Exit status is 0 if every dir was removed, 1 if any operand failed, 2 on a usage error (no operand given, or an unrecognised option).

None known.

September 14, 2026 maux