Developer disk cleanup guides
Where each dev tool hides its gigabytes, what is safe to delete, and the exact command for macOS, Linux and Windows. Not sure where to start? Run the free read-only scanner to see which ones are big on your machine.
- Clear Xcode DerivedData
Xcode DerivedData often eats 5–40 GB. See the path, safe clear commands, and a free read-only scanner that never deletes for you. - Delete node_modules
node_modules folders quietly eat tens of GB across old projects. How to find them, delete safely, and reinstall — plus a free scanner that never auto-deletes. - Clear Gradle cache
Gradle caches under ~/.gradle often reach multi-GB. Safe clear commands for caches vs wrapper, and a free read-only scanner for Mac/Linux/Windows. - Delete Ollama models
Ollama models live in ~/.ollama/models and each one can be several GB. Find the folder on macOS, Linux and Windows, see sizes with ollama list, and remove models with ollama rm. - Free Docker disk space
Check what Docker uses with docker system df, then prune build cache, stopped containers and unused images. What each prune deletes, volume warnings, and Docker Desktop on Mac and Windows. - Clear Homebrew cache
Homebrew keeps old versions and downloaded bottles in ~/Library/Caches/Homebrew. Preview with brew cleanup -n, then clear with brew cleanup --prune=all. Linux paths included. - Prune pnpm store
Find your pnpm store with pnpm store path, check its size, and remove unreferenced packages with pnpm store prune. Default store paths for macOS, Linux and Windows. - Clear Yarn cache
Find the Yarn cache with yarn cache dir and clear it with yarn cache clean. Paths for macOS, Linux and Windows, plus Yarn 2+ (Berry) project cache and global mirror. - Clean Rust target/
Rust target/ directories often grow to several GB per project. Find the biggest ones, run cargo clean, trim old artifacts with cargo-sweep, and keep ~/.cargo in check on Mac, Linux and Windows. - Clear pip & uv cache
pip and uv cache every wheel you download. Find the folders on macOS, Linux and Windows, check their size, and clear with pip cache purge, uv cache prune or uv cache clean. - Clear .next / .turbo
Next.js .next folders and Turborepo .turbo caches grow in every project. What is safe to delete, commands for macOS/Linux and Windows PowerShell, and how to find them across a monorepo. - Clear Hugging Face cache
Hugging Face models and datasets download to ~/.cache/huggingface and can grow to hundreds of GB. Find it on macOS/Linux/Windows, list with hf cache ls, and delete with hf cache rm or prune. - Delete Android emulators
Android emulators in ~/.android/avd plus system images in the SDK often take several GB each. List AVDs, wipe or delete them in Android Studio or with avdmanager, and uninstall unused system images.
Want one-click cleanup?
A planned devdisk desktop app for Mac and Windows: live treemap, cleanup that moves files to the Trash, scheduled scans. One email when it launches, with an early-supporter price. Your address is used only for that, and every email has an unsubscribe link.