Android Studio Eat Up My Hard disk Space
I have 200GB on my C drive and Windows keep prompting me on low disk space on this drive, and this drive does not have any data storage just software. I’m the type of person very careful on the software to be installed on my machine. So I’m quite surprised why I ended up with low hard disk space.
So I decided to take a look which software been occupied most of the space. I used spacesniffer to help me on this and it’s free!
Delete All Unused Emulator
Delete all unnecessary emulator that is not going to use anyway. Now I keep 2 emulators that I usually used. For the time being, I still switching between GenyMotion and Android Emulator 2.0 because I still not quite comfortable with the Android Emulator 2.0 except it’s free. 🙂 .
Delete Emulator’s Temp Files
From the 2nd image, even though I have deleted the emulators but I still see 16.5GB of temp folder which located in this directory C:\Users\[username]\AppData\Local\Temp\AndroidEmulator .
Delete Old Version Android Studio
Have a look at the below image, free up another ~20GB!!!. I still not satisfied because it still occupied quite a big portion of the space, checking further and noticed another abandon folders no-one care their existence in my hard disk, the old version of Android Studio, these files not removed when we upgrade to the new version. So remove all the old version folder except the latest version which is .Android 2.0. And it gives me back another ~16GB.
All together I claimed back ~50gb because all these “rubbish” files and folder. And the most important thing is after all these files been deleted Android Studio 2.0 still running well. :). There are some other folders like Android SDK, I still keeping it for testing purposes. If you’re sure you’re not going to use that so why still keep those files 😉
The lesson of this is you need to housekeep your machine whenever is possible not until your machine’s performance degraded. 😛 . That’s all, please comment if you found some other files that can be deleted too. :P.