Your Mac Looks Clean. Until You Ask One Question.
That “where did all my space go?” feeling is your instinct catching something real. It isn’t seeing junk. It’s seeing effects whose cause is long gone.
You know the moment. You haven’t installed anything big in months. Your photos live in iCloud. And yet the storage bar is almost full again, and the biggest slice has a name that explains nothing.
So you do what everyone does. You sort Downloads by size, delete two old videos, empty the Trash, and win back a few gigabytes. A month later the bar is back where it was.
The problem isn’t effort. It’s that we look for the wrong mistake. We go hunting for junk: files that are big, old or ugly. But size and age are weak signals. A 40 GB photo library is big and perfectly healthy. A 300 MB folder can be completely dead.
The signal that actually works is quieter, and once you see it you’ll see it everywhere: there are effects that outlived their cause.
Your Mac remembers everything and understands nothing
Every file on your Mac exists because something happened. You installed an app, so it built a cache. You started a project, so your tools downloaded its dependencies. You plugged in your iPhone, so your Mac made a backup.
Then the cause ends. You delete the app. You finish the project. You sell the phone.
The effect stays. Nothing on your Mac is in charge of noticing that the reason is gone. Some apps tidy their own caches while they run, but an app you’ve deleted can’t tidy anything. A project you closed doesn’t tell your tools it’s over. Storage settings simply add it all up and file a large part of it under a vague label like System Data.
That’s the whole trick. Junk on a Mac isn’t a type of file. It’s a file whose cause has died. Which means you don’t need a list of scary folder names. You need to get good at asking where something came from, and whether that thing is still alive.
What this looks like on a real Mac
Before writing this, we scanned one of our team’s everyday Macs. Not a test machine and not a staged demo: a Mac someone works on every day.
It held 94.4 GB that nobody was thinking about. 34.1 GB was app caches and temp files. 19.2 GB came from 18 project folders nobody had opened in months. 26.5 GB was worth a second look before touching. And 14.7 GB was AI chat history, which we left exactly where it was. That last part matters, and we’ll come back to it.
Your numbers will be different. The pattern behind them is worth learning. Here are five cases you will probably recognise, from the most obvious to the best hidden.
1. The box the app came in
Difficulty1 of 5
Open Downloads and look for files ending in .dmg or .pkg. These are installers. Their whole purpose was to put an app into your Applications folder, and in most cases they did that the day you downloaded them.
The cause, installing the app, finished long ago. The effect is still sitting there, sometimes a gigabyte or two at a time. And if you ever need the installer again, you can download a fresh one from the developer, usually a newer version.
If you like Terminal, this lists them biggest first. It only reads; it doesn’t change anything:
ls -lhS ~/Downloads | grep -iE '\.(dmg|pkg)$'One exception worth keeping in mind: an installer for software you can’t download again, like an old licensed version, is worth saving somewhere deliberate rather than leaving in Downloads by accident.
Once the app is in Applications, the box it came in is just a box.
2. The cache of a ghost
Difficulty2 of 5
Apps keep caches so they feel fast: thumbnails, previews, downloaded bits they’d rather not fetch twice. Most live in a folder called Caches inside your user Library. To see it in Finder, choose Go › Go to Folder (Shift-Command-G) and type ~/Library/Caches.
Here’s the part most people never hear: dragging an app to the Trash removes the app, not what it left in your Library. Its cache stays behind, named after an app that isn’t there anymore.
du -hd1 ~/Library/Caches 2>/dev/null | sort -h | tail -15Notice what this case does not say. Clearing the cache of an app you still use isn’t wrong, but it’s mostly pointless: the app rebuilds it the next time you open it, because its cause is alive. That’s what caches are for. The ones worth your attention are the ones with nobody left to read them.
A cache with no app to read it is caching nothing.
3. The project nobody opened
Difficulty3 of 5
If you write code, or have ever followed a tutorial that started with “first, install the dependencies”, this one is yours. Modern projects download their building blocks into the project folder. In JavaScript it’s called node_modules; other tools have their own build and output folders. Apple’s Xcode keeps build products for every project in ~/Library/Developer/Xcode/DerivedData, even after the project itself is gone.
These folders are often far bigger than the code you wrote. On the Mac above, 19.2 GB came from 18 project folders that hadn’t been opened in months.
The cause was a project you were actively working on. The cause is over. And this is the friendliest kind of leftover, because it comes back on demand: one install command, or one build in Xcode, and everything is rebuilt. The cost is a few minutes of waiting the day you return, if you ever do.
Read-only ways to see the biggest ones. Point the first at wherever you keep your projects:
find ~/Projects -type d -name node_modules -prune -exec du -sh {} + 2>/dev/null | sort -h | tail -20du -hd1 ~/Library/Developer/Xcode/DerivedData 2>/dev/null | sort -h | tail -10Not a developer? The same pattern shows up in creative apps. Video and music tools keep render and preview files that they can make again from your originals.
A dependency folder nobody runs is just a download you already did.
4. The phone you no longer own
Difficulty4 of 5
This is where the rule gets interesting, because the second question finally earns its place.
If you ever backed up an iPhone to your Mac, that backup may still be there, years after the phone was sold, traded in or handed down. You can see them in System Settings › General › Storage, under iOS Files. Each one can run to tens of gigabytes.
The cause is clearly gone. But unlike the first three cases, this effect does not come back. There is no command that rebuilds a backup of a phone you no longer have. That doesn’t mean you keep it for good. It means look before you clear: is there anything in it, old messages or photos that never made it to iCloud, that you’d want? If not, let it go. If you’re unsure, that’s your answer for today.
Developers get two more versions of the same story. When you connect an iPhone to Xcode, it copies support files for that iOS version into ~/Library/Developer/Xcode/iOS DeviceSupport, a folder for each iOS version it has seen, often a few gigabytes each. Versions you no longer test on are a clean case: Xcode copies them again the next time a device on that version is connected. iOS Simulators, in ~/Library/Developer/CoreSimulator/Devices, are different: deleting one deletes the apps and test data inside it. To check without touching anything:
du -hd1 ~/Library/Developer/Xcode/iOS\ DeviceSupport 2>/dev/nullxcrun simctl list devices unavailableWhen you do clean simulators, do it from Xcode rather than by hand.
This is what a “worth a second look” pile is made of. Not junk, not untouchable, just things that deserve thirty seconds of thought.
If it can’t come back, it deserves a second look, not a reflex.
5. The junk that’s still alive
Difficulty5 of 5
The hardest case isn’t hidden in a folder. It’s sitting at the top of every “largest files” list, looking exactly like junk.
Your Photos library. The attachments in Messages. A client project you’ve had open all week. And, more and more, AI chat history: the assistants and coding tools many of us now use every day keep their conversations as plain files on disk, and they grow quietly.
On our team’s Mac, AI chat history came to 14.7 GB. It’s big, it’s in a folder nobody opens by hand, and every “free up space” instinct says to delete it. We left it alone on purpose. Those conversations hold decisions, explanations and half-finished ideas that exist nowhere else. They don’t rebuild. Their cause, the person who had them, is very much alive.
The same goes for the others. If your Photos library is too big, the fix is Optimize Mac Storage in Photos settings, not the Trash. If Messages is heavy, review large attachments from the Storage settings, one by one.
This is the mistake that actually costs people something. Not the 2 GB installer they forgot, but the folder they deleted because it was big and they didn’t recognise it.
Big is not the same as dead.
Conclusions
You don’t need to memorise five folder paths. Next year there will be new apps, new tools and new folders with names nobody has heard of. What you need is a habit that works on all of them.
For anything big on your disk, ask two questions, in this order:
- Is its cause still alive? The app, the project, the phone, the person. If yes, leave it alone. It’s doing its job.
- If I remove it, does it come back? Caches, installers you can download again, build folders: yes. Backups, simulators, chat history, anything you made yourself: no.
Which gives you the one rule worth keeping:
If the cause is gone and it comes back on its own, let it go. If it can’t come back, look twice before you clear.
And whatever you clear, clear it to the Trash first, not straight into oblivion. A wrong pick should cost you a click, not a weekend.
This works far beyond a Mac. Your cloud drive, your phone, your inbox, the shared folder at work: everything digital is a pile of effects, and most of the clutter is effects whose cause quietly ended. Once you start asking where something came from, a full disk stops feeling like a mystery and starts reading like a history.
Related reading: Apple’s own guide, Free up storage space on Mac, covers the built-in tools in System Settings. For the folders behind each case, see What is System Data on a Mac?, What Xcode leaves on your Mac and Finding every node_modules folder.
A short note on where this comes from. We build Haikos Clean at Haikotek, a small engineering studio in Saigon, around exactly these two questions. It’s made for the Macs where leftovers pile up fastest, the ones running AI coding tools, editors and Xcode. Every row says what a thing is, which tool made it and whether it rebuilds on its own; nothing moves until you pick it, and what you clear goes to the Trash first, with Restore. The scan above was made with it.
Questions people ask
Why does my Mac storage fill up again after I clean it?
Because the usual cleanup targets what is big or old, not what has lost its reason to exist. Caches of deleted apps, dependency folders of closed projects and backups of old phones keep growing while you delete a few videos from Downloads. Ask where each big item came from and whether that cause is still alive, and the space stops coming back.
Is it safe to delete everything in ~/Library/Caches?
Mostly it is harmless, but it is also mostly pointless for apps you still use, because they rebuild their caches the next time they open. The folders worth your attention are caches named after apps you have already deleted: nothing will ever read them again. Quit an app before clearing its cache, and move folders to the Trash rather than deleting them outright.
What should I never delete to free up space on a Mac?
Anything that cannot come back and still has a living cause: your Photos library, Messages attachments, projects you are working on, iPhone backups you have not checked, and AI chat history, which holds conversations that exist nowhere else. Shrink Photos with Optimize Mac Storage and review Messages attachments in Storage settings instead of deleting folders by hand.
Sources
Paths and commands were checked against these pages on the date above.
- Apple Support: Free up storage space on Mac
- Apple Mac User Guide: Change Storage settings on Mac
- Apple Support: About Time Machine local snapshots
Also on Medium: Medium