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 โ€” remove DIRECTORY and its ancestors; e.g., rmdir -p a/b is similar to rmdir 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:


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