Skip to content

Instantly share code, notes, and snippets.

@tahmidsadik
Created September 19, 2015 18:47
Show Gist options
  • Save tahmidsadik/f08356d14a85d898299a to your computer and use it in GitHub Desktop.
Save tahmidsadik/f08356d14a85d898299a to your computer and use it in GitHub Desktop.
How to completely remove Android Studio from Mac OS X
How to Completely Remove Android Studio
Execute these commands from the terminal
rm -Rf /Applications/Android\ Studio.app
rm -Rf ~/Library/Preferences/AndroidStudio*
rm ~/Library/Preferences/com.google.android.studio.plist
rm -Rf ~/Library/Application\ Support/AndroidStudio*
rm -Rf ~/Library/Logs/AndroidStudio*
rm -Rf ~/Library/Caches/AndroidStudio*
if you would like to delete all projects:
rm -Rf ~/AndroidStudioProjects
to remove gradle related files (caches & wrapper)
rm -Rf ~/.gradle
use the below command to delete all Android Virtual Devices(AVDs) and *.keystore. note: this folder is used by others Android IDE as well, so if you still using other IDE you may not want to delete this folder)
rm -Rf ~/.android
to delete Android SDK tools
rm -Rf ~/Library/Android*
edit: added remove all Android Studio's logs. thanks Eron Villarreal!
edit: added remove ~.android folder. thanks randallmeadows!
@camden-kid
Copy link

@hanksudo
Copy link

👍

@richardleandro1
Copy link

Thank you

@litoarias
Copy link

Work for me!! Great

@Brandons42
Copy link

Thank you!

Copy link

ghost commented Jun 20, 2018

Thanks!!!!!!! 👍

@ValiantCuriosity
Copy link

Most Helpful. :-D

@endersaka
Copy link

HAXM can be fully removed even if you have already deleted "~/Library/Android*". This is the official guide: https://github.com/intel/haxm/wiki/Installation-Instructions-on-macOS#Removing_Intel_HAXM
The command is:
sudo /Library/Extensions/intelhaxm.kext/Contents/Resources/uninstall.sh

@Akramz
Copy link

Akramz commented Jul 26, 2018

Thank you!

@rathorevaibhav
Copy link

Helped me to free 20GB of disk space! Thanks.

@evgeniyd
Copy link

Hi. Thank you for this list.

How about?

~/Library/Saved\ Application\ State/com.google.android.studio.savedState

@lucifer662607004
Copy link

Hi. Thank you for this list.

How about?

~/Library/Saved\ Application\ State/com.google.android.studio.savedState

no "Saved Application" folder in Library here....

@evandrix
Copy link

where to configure Android Studio Cache folder path?

@scottjmaddox
Copy link

Super helpful, thanks! Android Studio is a massive disk hog.

@zehengdong
Copy link

Many thx! The folder ~/Library/Android is really large

@itsmonterey
Copy link

Thanks a lot! It saved me 20GB free space!!

@takatso-wits
Copy link

Thank you very much... I managed to free up at least 30 GB :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment