Manual / rmdir
rmdir(1)
| RMDIR(1) | General Commands Manual | RMDIR(1) |
NAME
rmdir - remove empty directories
SYNOPSIS
rmdir [ -p ] dir
DESCRIPTION
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.
- -p
- 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.
FILES
/usr/man/RMDIR this page
SEE ALSO
DIAGNOSTICS
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).
BUGS
None known.
| September 14, 2026 | maux |