The developer's Mac cleanup checklist

Every folder that quietly fills a developer's Mac, and the safe way to clean each one.

Measure everything at once (read-only)

 Terminal
du -sh ~/Library/Developer/Xcode/DerivedData ~/Library/Developer/CoreSimulator \
  ~/Library/Containers/com.docker.docker ~/.gradle ~/.android/avd ~/.npm ~/.cargo \
  ~/Library/Caches/pip ~/Library/Caches/Homebrew ~/.ollama ~/.cache/huggingface 2>/dev/null | sort -h

The checklist

WhatSafe commandRebuilds?
Xcode DerivedDatarm -rf ~/Library/Developer/Xcode/DerivedData/*Yes, on next build
Old simulatorsxcrun simctl delete unavailablen/a
Dockerdocker system pruneImages pull again
node_modulesdelete per projectnpm install
npm / Yarn / pnpm cachesnpm cache clean --force, yarn cache clean, pnpm store pruneYes
Gradlerm -rf ~/.gradle/cachesYes
Rustcargo clean per projectYes
Pythonpip cache purge, uv cache clean, conda clean --allYes
Homebrewbrew cleanupYes
CocoaPods / SwiftPMpod cache clean --allYes
AI modelsollama rm <model>Download again
Before deleting anything inside a project folder, check git status. Build output is rebuildable; uncommitted work is not.
Let the raccoon do it, safely

Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free beta for Mac.

Download for Mac