Help · Mac storage

How to clear developer caches on a Mac.

Every package manager keeps a cache of what it has downloaded, so installs are faster next time. Most never shrink on their own. Clearing them is safe: things download again when needed, at the cost of a slower next install. Always use the tool's own command; some caches are read-only or self-indexing, and deleting their folders by hand can confuse the tool.

To see which are big, check the paths below in Finder (Go › Go to Folder…) with Get Info, or run du -sh on them in Terminal.

Commands, tool by tool

For Xcode's DerivedData, simulators and device support, see clearing Xcode's cache. For Docker, see Docker disk space.

Don't forget project folders

Old projects' node_modules, target, .build and Pods folders can be bigger than any cache. They're rebuilt by an install or build, so for projects you're not working on, they can go.

Find every developer cache, and run the right command.

Pangalin Space Manager finds package caches (npm, pip, Homebrew, Yarn, pnpm, Gradle, Maven, CocoaPods, Cargo, Go, uv and more) with their sizes. It refuses to clear any that hold package files by hand, and points you to the right Janitor, which runs that tool's own clean-up command (including go clean -modcache for Go modules), after a confirmation that says plainly the tool deletes permanently. Janitors need a licence, because the space they free can't be measured in advance.

Free to scan · first 5 GB freed free, then $25 a year · 14-day full refund · Notarised by Apple