Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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!
@venelrene
Copy link

venelrene commented Mar 29, 2016

Thank you!

@manuelcoppotelli
Copy link

manuelcoppotelli commented Apr 5, 2016

If you want to go for a complete uninstall you have to uninstall the HAXM, so:

cd ~/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager/
chmod +x silent_install.sh
./silent_install.sh -u

@ecols33
Copy link

ecols33 commented May 17, 2016

If you want to go for a complete uninstall you have to uninstall the HAXM, so:

cd ~/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager/
chmod +x silent_install.sh
./silent_install.sh -u

by executing rm -Rf ~/Library/Android* the HAXM files inside that folder are removed.

@jesushilarioh
Copy link

jesushilarioh commented Dec 18, 2016

Thanks alot! worked! :)

@rockchalkwushock
Copy link

rockchalkwushock commented Apr 29, 2017

Thanks for this resource 👍

@eminsonerturk
Copy link

eminsonerturk commented Aug 26, 2017

Thanks alot ! it worked on me.

@Hanslen
Copy link

Hanslen commented Aug 31, 2017

Thanks a lot! It worked on me!

@Natelegreat1
Copy link

Natelegreat1 commented Sep 8, 2017

+1

@fasilminale
Copy link

fasilminale commented Oct 25, 2017

thanks, also it worked for me

@gulliet
Copy link

gulliet commented Nov 6, 2017

Great! That worked perfectly; I have now a clean and working install of AS3. (The upgrade from AS2 went pretty wrong.) Many thanks!

@smhk
Copy link

smhk commented Dec 22, 2017

Thanks for these great tips !!

An update for 2018 would be great ...

@rodrigo98rm
Copy link

rodrigo98rm commented Jan 2, 2018

Worked for me! Thanks a lot!

@victoriahawkins
Copy link

victoriahawkins commented Jan 5, 2018

thanks!

@camden-kid
Copy link

camden-kid commented Feb 23, 2018

@hanksudo
Copy link

hanksudo commented Mar 20, 2018

👍

@richardleandro1
Copy link

richardleandro1 commented Apr 26, 2018

Thank you

@litoarias
Copy link

litoarias commented May 17, 2018

Work for me!! Great

@Brandons42
Copy link

Brandons42 commented Jun 13, 2018

Thank you!

Copy link

ghost commented Jun 20, 2018

Thanks!!!!!!! 👍

@ValiantCuriosity
Copy link

ValiantCuriosity commented Jul 9, 2018

Most Helpful. :-D

@endersaka
Copy link

endersaka commented Jul 14, 2018

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

rathorevaibhav commented Aug 25, 2018

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

@evgeniyd
Copy link

evgeniyd commented Sep 18, 2018

Hi. Thank you for this list.

How about?

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

@lucifer662607004
Copy link

lucifer662607004 commented Oct 30, 2018

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

evandrix commented Dec 14, 2018

where to configure Android Studio Cache folder path?

@scottjmaddox
Copy link

scottjmaddox commented Jan 14, 2019

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

@zehengdong
Copy link

zehengdong commented Feb 18, 2019

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

@mon7erey
Copy link

mon7erey commented Jan 8, 2020

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

@takatso-wits
Copy link

takatso-wits commented Apr 19, 2020

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