The one rule that prevents every disaster

A cache holds data that can be recomputed from a source of truth. That is why deleting one is safe: the app regenerates it, slightly slower the next time. A database, a preference file, or an archive looks similar on disk and is not recomputable. If you can't explain what the source of truth is, don't delete it by hand — clear it from inside the app that owns it.

Safe: developer build caches

These regenerate on the next build or install. They are usually the largest reclaimable category on a developer's Mac.

CacheLocationRegenerates when
Xcode DerivedData~/Library/Developer/Xcode/DerivedDataNext build
iOS DeviceSupport~/Library/Developer/Xcode/iOS DeviceSupportDevice reconnected
Simulator caches / devices~/Library/Developer/CoreSimulatorSimulator next used
npm cache~/.npm (and ~/.cache tooling)Next install
pnpm / yarn store~/.local/share/pnpm, yarn cache dirNext install
Homebrew downloads~/Library/Caches/HomebrewNext install/upgrade
pip cache~/Library/Caches/pipNext install
Gradle / Maven~/.gradle, ~/.m2Next build
Cargo~/.cargo/registryNext build
CocoaPods / SwiftPM~/Library/Caches/CocoaPods, SwiftPM cachesNext resolve
HuggingFace / ML model caches~/.cache/huggingface, and similarNext download
Go build & module cache~/Library/Caches/go-build, ~/go/pkg/modNext build

⚠️ Not caches, despite the folder name: Xcode Archives (~/Library/Developer/Xcode/Archives) are the release archives you upload to App Store Connect. Deleting them means re-archiving an old release. Treat them as project data, not build output.

Safe: app and browser caches

Handle with care

ItemWhy it needs care
Docker's Docker.rawOwned by the Docker runtime; shrink with docker system prune, never by deleting the file
Time Machine local snapshotsThey are your local recovery points; tmutil can thin them, but the trade-off is real
iCloud / Dropbox / Drive local cachesDeleting the cache can trigger a full re-download
Mail dataDeleting the cache can force a re-index of your whole mailbox
Photos LibraryA bundle, not a cache; manage inside Photos
Logs (~/Library/Logs)Usually safe, occasionally needed for support diagnostics

Never touch by hand

Why a curated list beats a general cleaner

Blind “cleaners” guess from folder names, which is how people lose Xcode Archives or a mail index. A curated registry does the opposite: it names the specific paths that are known to be regenerable, says what each one is, and tags each entry Safe, Review or Caution so the decision stays yours. That's what Massive Disk's Space Savers view is — a registry rather than a guess, covering the caches above plus iOS backups, Mail downloads, user caches, logs and the Trash.

The safety net

Whatever you clear, make it recoverable. Caches are meant to be disposable, but you only need one wrong deletion to learn why staged, Trash-based cleanup matters. Massive Disk never hard-deletes: every removal from the cleanup queue, Space Savers, Duplicates or the uninstaller lands in the Finder's Trash first.

Frequently asked

Is it safe to delete the Caches folder on a Mac?

Mostly, but not wholesale. Individual app caches under ~/Library/Caches are safe because they rebuild. Blanket-deleting the entire folder can force large re-downloads (cloud sync clients, mail index) and occasionally removes state an app doesn't rebuild cleanly.

Is it safe to delete Xcode DerivedData?

Yes — Xcode recreates it on the next build. Do not confuse it with Xcode Archives, which are your release archives and should be kept.

Does clearing caches free up space permanently?

No; caches refill as you use your Mac. It resets the clock and recovers space now, which is why the ongoing habit is to re-scan periodically rather than clean once.

See it on your own Mac

Massive Disk is a native Apple Silicon app that maps every byte of your storage across six visualizations — then gives you safe, reversible ways to get space back. Scanning is free forever; cleanup tools are Pro.

Download for Apple Silicon   See every feature

Keep reading