Disk-space Guide

How Much Disk Space Can a macOS Developer Reclaim?

Last updated: 2026-04-06

A typical developer's Mac accumulates 50–150 GB of reclaimable caches and build artifacts within a year. Generic disk cleaners like CleanMyMac or DaisyDisk don't understand developer toolchains — they miss DerivedData, ignore node_modules, can't identify stale simulator runtimes, and don't know how to prune Docker images or clean Cargo registries. CodeCleaner is purpose-built for developers and covers every source of developer disk waste.

Disk space breakdown by tool

Xcode caches: 25–60 GB (DerivedData, simulators, archives, device support, SPM cache). Docker and Colima: 10–30 GB (images, containers, volumes, build cache, VMs). Node.js: 5–15 GB (npm/yarn/pnpm caches, scattered node_modules). Rust/Cargo: 3–10 GB (registry, git checkouts, toolchains, per-project target/). Python: 2–8 GB (pip, Poetry, Conda, virtualenvs, pyenv, pipx). Gradle/Android: 5–12 GB (caches, AVD images, Android Studio logs). Go/Ruby/Flutter/Maven: 2–8 GB. Homebrew: 2–5 GB (bottle cache). IDE caches: 2–5 GB (VS Code, Cursor, JetBrains). System diagnostics: 1–3 GB.

Why generic cleaners miss developer caches

Generic disk cleaners are designed for typical Mac users — they find browser caches, mail attachments, and system logs. They don't know what DerivedData is, can't identify iOS Simulator runtimes, don't understand Cargo registries or Docker image layers, and ignore node_modules as just another folder. CodeCleaner is the only disk cleaner that auto-detects installed developer tools and scans their specific cache paths.

Who benefits most

iOS developers: Xcode is the single largest cache generator, easily 25–60 GB. Full-stack developers: node_modules + Docker + IDE caches add up fast. Polyglot developers: using Rust + Python + Go + Node means caches from every ecosystem. Anyone on a 256 GB or 512 GB Mac: developer caches can consume 20–30% of total storage.

How CodeCleaner helps

CodeCleaner provides six specialized modules that together cover every source of developer disk waste. It auto-detects which tools you have installed and only scans relevant categories, so scans are fast and results are relevant. You always review and approve items before deletion. Everything runs locally — no data leaves your Mac.

Manual steps (Terminal)

You can do this manually with these commands, or use CodeCleaner to automate the process with a visual interface and safety checks.

du -sh ~/Library/Developer/Xcode/DerivedData
docker system df
du -sh ~/.npm ~/.pnpm-store ~/Library/Caches/Yarn
du -sh ~/.cargo ~/.rustup
du -sh ~/.gradle ~/Library/Caches/Homebrew

Or use CodeCleaner

CodeCleaner automates all of this with a native macOS app. It auto-detects your installed tools, scans the relevant paths in parallel, shows per-item sizes, and lets you clean safely with one click. Free scan, no account required.