DIRS_CLEANER(8)

πŸ“¦ version 757, in nixpkgs unstable

πŸ’– NAME πŸ’–

Okay so bestie, this is dirs_cleaner(8) from the System Manager's Manual, and it's literally the utility that can remove contents of directories. That's the whole name-and-purpose moment. Periodt. πŸ’…

✨ SYNOPSIS ✨

dirs_cleaner path ...

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea: the dirs_cleaner utility recursively deletes the entire contents of each directory argument, while the directories themselves are not deleted. Slay, but make it "contents only." πŸ’–

A cleaned directory may be re-created in the process of cleaning; if so, it gets a new inode number. Not me warning you about the inode glow-up β€” it's just what happens. πŸ™ˆ

Recursive traversals do not cross mount points. No mount-point hopping, bestie. πŸš«πŸ¦‹

Each directory is identified directly or via a symbolic link. Simple as that. πŸ’«

When it's all done, dirs_cleaner exits with one of the following values:

  • 0 β€” each input directory was successfully cleaned βœ…
  • >0 β€” an error occurred 😭

Okay that's the whole page, bestie! This icon was brought to you by Debian, dated February 8, 2021 β€” mwah πŸ’‹πŸ‘‘

πŸ“¦ where this page comes from