Caches, Docker and Android
Package caches, Docker and the Android SDK
Every package manager keeps a copy of everything it ever downloaded. DevSweeper measures each cache, counts only the space removal actually frees, and clears it with the tool's own command where there is one.
Free to scan. Seven days of cleaning free, no card. macOS 26 or later.
| Cache | Where | How it is cleared |
|---|---|---|
| npm | ~/.npm/_cacache | npm cache clean --force |
| npx | ~/.npm/_npx | Trash, skipping packages a program is running from |
| pnpm | the store pnpm reports | pnpm store prune |
| yarn (Yarn 1) | ~/Library/Caches/Yarn | yarn cache clean |
| yarn (Yarn 2 and later) | ~/.yarn/berry/cache | Trash |
| bun | ~/.bun/install/cache | bun pm cache rm |
| uv | the cache uv reports | uv cache clean, when no uv process is running |
| pip | ~/Library/Caches/pip | pip3 cache purge |
| CocoaPods | ~/Library/Caches/CocoaPods | pod cache clean --all |
| SwiftPM | ~/Library/Caches/org.swift.swiftpm | Trash, with Xcode quit |
| pub (Dart, Flutter) | ~/.pub-cache | dart pub cache clean --force |
| Homebrew | the cache brew reports | brew cleanup --prune=all |
| Gradle | ~/.gradle/caches | Trash, with Android Studio quit |
| Other app caches | ~/Library/Caches, folders of 1 GB or more | Trash, with the app quit |
Caches
When a tool isn't installed any more, its cache goes to the Trash instead. brew cleanup --prune=all also removes old versions of installed formulae, and the preview says so.
Sizes leave out blocks shared through APFS clones. If uv's cache is cloned into your virtualenvs, DevSweeper reports the space clearing it would actually free, not the size of the folder.
MCP servers and other tools started with npx run from ~/.npm/_npx. DevSweeper leaves out the packages something is running from, and checks again right before cleaning.
Any other folder in ~/Library/Caches of 1 GB or more is listed too, named after its app when that app is installed, and cleaned only while the app is quit. Apple's own folders are never listed.
Docker
With Docker running, DevSweeper reads docker system df and shows:
- Stopped containers and build cache, cleared with
docker system prune --force; - Unused images, cleared with
docker image prune --all --force; - Unused volumes, review only. Volumes hold data, and DevSweeper never removes them.
Docker Desktop's disk image gives space back to macOS gradually, so free space can take a while to catch up.
Android SDK
In ~/Library/Android/sdk, older NDK and build-tools versions, and system images no virtual device uses. In ~/.android/avd, virtual devices you haven't used within the window. They are removed with sdkmanager --uninstall and avdmanager delete avd, with Android Studio quit.
Doing it by hand
To prune Docker yourself and get the disk image to give the space back, see how to clear the Docker cache on a Mac.
To clear npm, pnpm, Yarn and Bun caches from the terminal, see how to delete node_modules and clear package-manager caches.