Overview
rmdir[options]directory...
POSIX options: [-p]
GNU options (abbreviated):
[-p] [--ignore-fail-on-non-empty] [--help] [--version] [--]
description
rmdir to delete empty directories. If the given directory is not empty, then an error
POSIX options
- -p
- If the directory name composed of a plurality of paths, sequentially deleted from the last pathname until all path names are deleted completely. Example: The command 'rmdir -pa / b / c' follow 'rmdir / a / b / c'; 'rmdir a / b'; 'rmdir a' delete directory sequence.
GNU Options
- --ignore-fail-on-non-empty
- Usually, rmdir refuse to remove a non-empty directory. This option will enable the command to ignore the non-empty directories and delete operations. (See Update fileutils-4.0)
- -p, --parents
- Ibid.
GNU Standard Options
- --help
- On standard output display usage information and exit successfully.
- --version
- Display version information and exit successfully on standard output
- --
- Terminal list of options.
Environment Variables
Variables LANG, LC_ALL, LC_CTYPE, LC_MESSAGES defined as usual.
follow
POSIX 1003.2
Application examples
Command 'rmdir foo' will remove empty directories foo. To delete a non-empty directory, and its subsidiaries, including all content, you can use the command 'rm -rfoo'.