OS Manuals

/usr/bin/rmdir

GNU core utilities

From coreutils 9.12-r7 (os), captured 2026-11-05 by running rmdir --help (exit 0). permalink

Also provided by 1 other package version
Usage: /usr/bin/rmdir [OPTION]... DIRECTORY...
Remove the DIRECTORY(ies), if they are empty.

      --ignore-fail-on-non-empty
         ignore each failure to remove a non-empty directory
  -p, --parents
         remove DIRECTORY and its ancestors;
         e.g., 'rmdir -p a/b' is similar to 'rmdir a/b a'
  -v, --verbose
         output a diagnostic for every directory processed
      --help
         display this help and exit
      --version
         output version information and exit

Report bugs to: <bug-coreutils@gnu.org>.
GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
General help using GNU software: <https://www.gnu.org/gethelp/>
Full documentation <https://www.gnu.org/software/coreutils/rmdir>
or available locally via: info '(coreutils) rmdir invocation'
Options (5)
OptionDescriptionSource
--ignore-fail-on-non-emptyignore each failure to remove a non-empty directoryhelp + man
-p, --parentsremove DIRECTORY and its ancestors;help + man
-v, --verboseoutput a diagnostic for every directory processedhelp + man
--helpdisplay this help and exithelp + man
--versionoutput version information and exithelp + 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.