Tips for Deleting Junk Files in Android Studio

Not only is the RAM consumption high, but Android Studio basically also stores large data files on the drive. In total there may be about tens of GB and continues to grow as more projects are created.

The files that are classified as large are usually stored in the cache. Be it from assets or gradle. And by deleting it, of course this can save storage space on the computer/laptop drive.

There are various ways to delete junk files in the Android Studio program. Doing so will not affect the current project. So everything will be safe.

Various Ways to Delete Junk Files in Android Studio

1. Gradle Cleaning

The more projects you create, the more Gradle files will pile up. If on Windows, the Gradle directory can be found at:

C:\Users\NAMA PC\.gradle

Unused Gradle File Removal

There will be several folders. But what you need to delete is the folder caches, daemonand wrapper. Apart from that the folder does not need to be deleted.

2. Using Optimize Disk Space Fitur

Android Studio also has a feature for optimizing file storage, It’s found in File > Settings > System Settings > Android SDK. And click option Optimize Disk Space.

Deleting Junk Files in Android Studio

Then the system will display some files that can be optimized. If it’s not there, a notification will appear “This disk space utilized by this SDK is already optimized“.

In this way, you can save tens to hundreds of MB of storage space.

3. Remove Old SDK and Unused Emulators

A rarely used SDK isn’t it better to remove it? For example Android SDK version 3.0. Because the average Android phone is currently being carried with an Android version that is getting higher and starting to leave the old version.

Besides that, you can also consider deleting device emulator which is rarely used. Of course this will save quite a lot of space.

Also read: 5 Benefits of Using Remote Desktop (RDP)


From the few tips above, you can save storage from 5GB to 10GB. And I do not recommend doing it every day, and just do it every few months, it’s better.

Except for the first point, which is gradle cleaning, you can do it after finishing the project. And in addition, don’t forget to clean Recycle Bin after applying the three tips above.

Hopefully useful and good luck