To delete the Gradle cache on a Mac, stop the Gradle daemons with ./gradlew --stop, then remove ~/.gradle/caches and, if you want more space, ~/.gradle/wrapper/dists. Both are re-downloaded on the next build. Android system images and emulators are cleaned separately.
How much space is Gradle using?
Check first. This only reads sizes:
du -sh ~/.gradle/caches ~/.gradle/wrapper/dists ~/.gradle/daemon 2>/dev/null
Gradle's documentation lists what the Gradle user home (~/.gradle) holds: caches/ for downloaded dependencies and build caches, wrapper/dists/ for the Gradle versions your projects' wrappers downloaded, and daemon/ for daemon logs and registry. The same page says Gradle cleans unused entries in the background, for example version-specific caches unused for 30 days, and that most caches do not need manual management. In practice, folders still grow large on a Mac that builds many projects.
Real example: 11 GB of Gradle cache
On the developer's own Mac on 22 November 2026, deleting ~/.gradle/caches (11 GB) and the Gradle wrapper downloads (724 MB) took free space from 2.2 GB to 14 GB. The Mac then rebuilt only what the next project needed. That is the pattern: a small, safe deletion on a nearly full disk made the Mac usable again.
How do I delete ~/.gradle/caches safely?
- Close Android Studio, IntelliJ or any IDE with a Gradle project open.
- Stop running daemons from any project folder:
./gradlew --stop. (Outside a project,gradle --stopworks if Gradle is installed.) - Delete the caches folder:
rm -rf ~/.gradle/caches - Optional: delete old wrapper downloads:
rm -rf ~/.gradle/wrapper/dists - Open a project and build. Gradle downloads what it needs again.
These commands delete permanently. They skip the Trash and cannot be undone. Everything in them can be downloaded again, but only with an internet connection, so avoid doing this right before you go offline.
Deleting wrapper/dists removes every Gradle version the wrapper downloaded. Each project re-downloads the version it needs the first time you build it. Leave ~/.gradle/gradle.properties and any init.d scripts alone, because those hold your settings, not cache. More on the folder: Gradle caches on Mac.
Where else does Android Studio store data?
| What | Where | Call |
|---|---|---|
| Gradle cache | ~/.gradle/caches | Safe to clear |
| Gradle wrapper downloads | ~/.gradle/wrapper/dists | Safe to clear |
| Android SDK system images | ~/Library/Android/sdk/system-images | Look first |
| Emulators (AVDs) | ~/.android/avd | Look first |
| Android Studio caches | ~/Library/Caches/Google/AndroidStudio* | Safe to clear (IDE closed) |
The SDK path above is the default on macOS; if you changed it, check Settings, Languages and Frameworks, Android SDK in Android Studio.
How do I delete Android emulators and system images?
Android's documentation says an AVD is created in ~/.android/avd/ by default, and each needs a system image, a download of Android for that API level. Both take real space: an AVD holds its own disk image, and each system image is a separate download.
List what you have, then delete by name:
du -sh ~/.android/avd/* ~/Library/Android/sdk/system-images/* 2>/dev/null
avdmanager list avd
avdmanager delete avd -n Pixel_8_API_34
avdmanager is in the SDK's cmdline-tools folder; if the command is not found, use Android Studio's Device Manager, open the menu next to a device and choose Delete. Deleting an AVD removes its stored data for good. Then remove system images you no longer use with the SDK Manager or:
sdkmanager --list_installed
sdkmanager --uninstall "system-images;android-34;google_apis;arm64-v8a"
Use the exact package name from the first command. Unlike caches, an emulator may hold test data you set up by hand, so Android AVDs is a "Look first" folder. Note the emulator should be closed first.
What about Android Studio's own caches?
Android Studio keeps indexes and caches in a version-named folder under ~/Library/Caches/Google/ (for example AndroidStudio2024.2). Close the IDE and delete old versions' folders, or use File, Invalidate Caches inside the IDE, which clears the current one and restarts. Expect a re-index afterward. Folders for Studio versions you no longer have installed are the safest to remove.
How does Clean House handle Gradle and Android storage?
Clean House recognizes Gradle caches and Android emulators as developer data. They show in the Dev Desk room with a "Why?" card saying where they came from and what happens if they go (a re-download, in the Gradle case), and a call of Safe to clear, Look first or Keep. Cleaning moves items to the Trash after a re-check, with Recently Cleared to put them back. It avoids items an app is using, so quit your IDE first.
Related: Xcode storage, Docker disk space and freeing up space on a Mac.