Gradle cache (~/.gradle/caches) on Mac: what it is and whether you can delete it
MACMAN FOLDER · 2026-11-16
~/.gradle/caches
What it is
~/.gradle/cachesSafe to delete nowGradle cache — regenerated
Why it grows
Gradle downloads the libraries your projects use into this folder and shares them across projects. Files transformed during builds and the build cache are stored here too.
Each time a library version changes, the new version is added, and each Gradle version you use gets its own folder. If you work on several Android projects it can reach tens of GB.
Before you delete
~/.gradle/cachesThe only cost: the next build is slower
How to check its size
In Finder, choose Go > Go to Folder (Shift-Command-G), enter ~/.gradle/caches, then use Get Info (Command-I) to see the size.
In Terminal, run du -sh ~/.gradle/caches to see the size.
The free MacMan Scan diagnosis lists this folder with its size and grade. The scan is read-only.
How to shrink it safely
- Close Android Studio and any other IDE that uses Gradle, and stop any build in progress.
- Open this folder in Finder, move its contents to the Trash, then empty the Trash.
- On the next build Gradle downloads the libraries it needs again. You need an internet connection, and the first build is slower than usual.
How MacMan Scan handles this folder
MacMan Scan lists the items inside this folder one by one on the cleanup screen, checked by default. Nothing is deleted until you press the delete button yourself.
Related folders
- Android AVD folder (~/.android/avd) on Mac: what it is and whether you can delete it
- Android SDK system-images on Mac: what it is and whether you can delete it
- npm cache (~/.npm) on Mac: what it is and whether you can delete it
The scan is read-only. Diagnosis alone deletes nothing.