Is it safe to delete Gradle wrapper distributions?

~/.gradle/wrapper/dists · Safe to delete

What it is

Full Gradle versions downloaded by each project's gradlew.

Can you delete it?

Yes, it is rebuilt automatically. Old versions you no longer build with can go; gradlew downloads its version again if needed.

How to clean it safely

  1. Delete folders for Gradle versions none of your projects use.

How big is it on your Mac?

This read-only command prints its size and changes nothing:

 Terminal
du -sh ~/".gradle/wrapper/dists" 2>/dev/null

Step-by-step guide: Android Studio disk space →

Questions

Is it safe to delete ~/.gradle/wrapper/dists?

Yes, it is rebuilt automatically. Old versions you no longer build with can go; gradlew downloads its version again if needed.

Let the raccoon do it, safely

Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free to download, no account, no ads.

Download for Mac