OS Manuals

/usr/bin/rmdir

Cross-platform Rust rewrite of the GNU coreutils.

From uutils 0.12.0-r6 (os), captured 2026-11-07 by running rmdir --help (exit 0). permalink

Remove the DIRECTORY(ies), if they are empty.

Usage: rmdir [OPTION]... DIRECTORY...

Arguments:
  <dirs>...

Options:
      --ignore-fail-on-non-empty  ignore each failure that is solely because a directory is
                                  non-empty
  -p, --parents                   remove DIRECTORY and its ancestors; e.g., 'rmdir -p a/b/c' is
                                  similar to rmdir a/b/c a/b a
  -v, --verbose                   output a diagnostic for every directory processed
  -h, --help                      Print help
  -V, --version                   Print version
Options (5)
OptionDescriptionSource
--ignore-fail-on-non-emptyignore each failure that is solely because a directory is non-emptyhelp + man
-p, --parentsremove DIRECTORY and its ancestors;help + man
-v, --verboseoutput a diagnostic for every directory processedhelp + man
-h, --helpPrint helphelp + man
-V, --versionPrint versionhelp + man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.