RMDIR(1)
๐ RMDIR โ the girlies' guide to yeeting empty folders ๐
okay so bestie, welcome to rmdir, a lil User Commands baddie from the GNU coreutils fam. she's giving "delete the folder" energy but with one very specific rule: the directory has to be EMPTY. that's the whole vibe. no cap. ๐
โจ NAME โจ
rmdir โ remove empty directories ๐
โจ SYNOPSIS โจ
rmdir [OPTION]... DIRECTORY...
๐ธ DESCRIPTION ๐ธ
Remove the DIRECTORY(ies), if they are empty. that's it. that's the whole thing. if there's stuff inside, she's not doing it, and honestly? respect the boundaries. ๐ซถ
Here's every single flag, no skips, no shortcuts, because we don't gatekeep here:
--ignore-fail-on-non-emptyโ lowkey the chill one. ignore each failure to remove a non-empty directory. so she justโฆ doesn't complain about it. iconic behaviour. ๐-p,--parentsโ removeDIRECTORYand its ancestors; e.g.,rmdir -p a/bis similar tormdir a/b a. it's giving "clean up the whole chain, bestie". ๐-v,--verboseโ output a diagnostic for every directory processed. she will narrate her every move, main character energy fr fr. ๐--helpโ display this help and exit. a little "what can you even do" moment. โจ--versionโ output version information and exit. she'll tell you exactly which era of herself you're talking to. ๐ฆ
heads up bestie: the whole point of rmdir is that it only works on empty directories. that's not a bug, that's the assignment. ๐
๐ AUTHOR ๐
Written by David MacKenzie. we love a legend. ๐
๐ REPORTING BUGS ๐
found something cursed? don't suffer in silence, tell the devs:
- Report bugs to: <bug-coreutils@gnu.org>.
- Report any translation bugs to: <https://translationproject.org/team/>.
- GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
- General help using GNU software: <https://www.gnu.org/gethelp/>
โญ COPYRIGHT โญ
Copyright ยฉ 2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. (read that again bestie. NO WARRANTY. she's free and she's honest. ๐ญ)
๐ฆ SEE ALSO ๐ฆ
Full documentation <https://www.gnu.org/software/coreutils/rmdir> or available locally via: info '(coreutils) rmdir invocation'
iykyk ๐
and that's the whole page, bestie! this was GNU coreutils 9.12, dated September 2026, living her life as RMDIR(1). go forth and delete responsibly โ empty folders only, periodt. ๐ โจ๐
๐ฆ where this page comes from
- arch rolling: coreutils 9.12-2 ยท GPL-3.0-or-later AND GFDL-1.3-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms