A disk cleaner has an unusual job: its main feature is destroying data. The failure modes aren't "a button is in the wrong place" — they're "my thesis is gone". These are the rules Limpa Tudo, the open-source (MIT) disk cleaner for Mac and Linux I build, follows, and why.
1. Scanning and removing are separate steps
A scan never deletes anything. You see the full list first, then decide. There is no "clean everything" button that skips the list, and the background monitor only measures — it can tell you there's space to free, never free it.
2. The Trash is the default
Everything goes to the system Trash, so a mistake costs one drag back. Permanent deletion exists, but it's an advanced setting you have to turn on, and the confirmation says so in plain words.
3. A fixed list of paths, never an open-ended scan
The app only looks at a curated catalog of known cache locations (~/.npm, ~/Library/Developer/Xcode/DerivedData, ~/.gradle/caches…). It never walks your disk looking for "junk". A heuristic that decides a folder is junk will, sooner or later, be wrong about one of yours. Documents, Desktop, Photos, passwords and the Keychain are out of scope by design.
4. Every item shows its path and its real size
Before you can check an item you see where it is and how big it is. "Real" matters: on APFS, du can report hundreds of GB for a folder that takes a few, because clones share blocks. We met this on WhatsApp's media folder — 383 GB according to du, about 7 GB in reality (the full story) — and now measure folders like that by counting each file size once.
5. Risk is explicit
Each item is 🟢 low (rebuilt automatically — caches, build outputs), 🟡 medium (comes back, but at a cost — emulators, downloaded models, chat media) or 🔴 high (data you'd lose — Docker's whole VM). Only 🟢 can be pre-selected; 🟡 asks for an extra confirmation; 🔴 only appears in advanced mode.
6. Running apps are left alone
Deleting a cache under a running app can corrupt it. Before removing an app's cache, Limpa Tudo checks whether the app is open and skips those items, telling you which ones.
7. No promises about speed or gigabytes
Clearing caches doesn't make a computer faster, and nobody can promise you "X GB freed" without looking at your disk. The honest promise is narrower: here is what's on your disk, here is what's safe to remove, you decide.
The code is open on GitHub, including the catalog of paths and the risk of each one — so you don't have to take these rules on faith.
Originally published at limpatudo.glodzinski.dev.br.
