yash.apps
Decache · Devlog

My Mac had 12 GB left. Caches were hiding 96.

22 Nov 2026 · Yash Rawat

Running Claude and Android Studio side by side, my Mac kept running out of room. One evening it simply had no space left to write: 12.16 GB free out of 494 GB, and I couldn’t think of anything big I’d added. Just code.

That’s the trap. Developer tools don’t store much in the folders you look at. They store it in caches you never see.

An opened hard disk drive in black and white, showing the platter and read arm
It isn’t your files filling the disk. It’s everything your tools keep around them. Photo by Denny Müller on Unsplash

1Where 96 GB was hiding

I built a small Mac app, Decache, to find out. It knows where Xcode, Android Studio, Gradle, Flutter, npm and friends keep their caches, and measures each one. The first scan on my Mac found 96.3 GB it could clean. The biggest items:

WhatSizeDecache says
iOS device support (6 iOS versions)32.08 GBReview first
Xcode Derived Data28.25 GBSafe to clear
Android emulator12.68 GBReview first
Gradle caches6.77 GBSafe to clear
Android Studio caches3.36 GBSafe to clear
Emulator system image3.1 GBReview first
Gradle versions777 MBReview first
Xcode archives272 MBReview first

Xcode alone was holding 60.6 GB and Android plus Gradle another 26.7 GB, with the rest spread across smaller caches. None of it was anything I’d chosen to keep.

Decache before cleaning: 12.16 GB available, 96.3 GB can be cleaned
Before: 12.16 GB available, 96.3 GB that could be cleaned.

2What’s safe to delete, and what isn’t

Not all of that is equal, so Decache splits it in two. Safe to clear means the tool rebuilds or re-downloads it by itself, and the only cost is a slower first build:

  • Derived Data is Xcode’s build output and index for every project you’ve ever opened, including ones you deleted long ago.
  • Gradle caches are every dependency every Android project has downloaded, across every version.
  • Android Studio caches are indexes the IDE rebuilds on launch.

Review first means it’s fine to remove, but you should pick what goes:

  • iOS device support is debug symbols copied for each iOS version you’ve ever plugged a phone in on. I had six versions at 32 GB. You only need the ones your test devices run now.
  • Emulators hold apps and data you set up, so Decache moves them to the Trash rather than deleting them.
  • Archives are past App Store builds, needed to read crash reports for versions still out there.

3One click: 41.5 GB back

I left Decache’s default selection alone, which is only the “Safe to clear” items: 47.34 GB. I quit Xcode, clicked Clean and confirmed.

Decache after cleaning: 53.59 GB available and Freed 41.49 GB
After: 53.59 GB available. Freed 41.49 GB.

The disk went from 12.16 GB to 53.59 GB available. Decache reported 41.49 GB freed, a bit less than the 47 GB selected. One item couldn’t be removed, most likely because an app was using it, and Android Studio’s caches were back at 1.32 GB right after, most likely because it was still open and rebuilding them. Quit your IDEs before cleaning and the numbers line up more closely.

4What I left alone, for now

Another 50 GB is still on the table, all of it “Review first”: the 32 GB of iOS device support, a 12.7 GB emulator and a 3.1 GB system image. Old iOS versions are the obvious next candidates, keeping the ones my test devices run. But those are decisions, and a cleaner shouldn’t make them for you.

5The cost

The first Xcode build of each project after clearing Derived Data starts from scratch, and the first Gradle build downloads its dependencies again, so do it on a decent connection. After that one build, everything runs at normal speed. Caches grow back over time too, which is why Decache sits in the menu bar showing your free space and turns into a warning sign when the disk is nearly full.

6Doing it by hand

You don’t need an app for the safe part. To see what you have:

Terminal
du -sh ~/Library/Developer/Xcode/DerivedData \
  ~/Library/Developer/Xcode/iOS\ DeviceSupport \
  ~/.gradle ~/.android/avd ~/Library/Caches/Google 2>/dev/null | sort -h

And to clear the caches that rebuild themselves (quit Xcode and Android Studio first):

Terminal
# Xcode build products and indexes
rm -rf ~/Library/Developer/Xcode/DerivedData/*

# Gradle's downloaded dependencies and build caches
rm -rf ~/.gradle/caches

# Android Studio's IDE caches
rm -rf ~/Library/Caches/Google/*

# npm's download cache
npm cache clean --force

What the app adds is everything around those lines. It covers Flutter, Yarn, pnpm, Bun, CocoaPods, Homebrew and pip too, plus node_modules and build folders in projects you haven’t touched in months. Every item is labelled, emulators go to the Trash instead of vanishing, and you get a progress bar instead of a silent terminal.

The short version

If you build for iOS or Android, your Mac is probably holding tens of gigabytes of caches. On mine it was 96 GB, and clearing only the safe half took me from 12 GB to 53 GB free.

Get Decache for Mac →