Skip to content

Instantly share code, notes, and snippets.

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\
rm -Rf ~/Library/Preferences/AndroidStudio*
rm ~/Library/Preferences/
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 folder. thanks randallmeadows!
Copy link

venelrene commented Mar 29, 2016

Thank you!

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
./ -u

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
./ -u

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

Copy link

jesushilarioh commented Dec 18, 2016

Thanks alot! worked! :)

Copy link

rockchalkwushock commented Apr 29, 2017

Thanks for this resource 👍

Copy link

eminsonerturk commented Aug 26, 2017

Thanks alot ! it worked on me.

Copy link

Hanslen commented Aug 31, 2017

Thanks a lot! It worked on me!

Copy link

Natelegreat1 commented Sep 8, 2017


Copy link

fasilminale commented Oct 25, 2017

thanks, also it worked for me

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!

Copy link

smhk commented Dec 22, 2017

Thanks for these great tips !!

An update for 2018 would be great ...

Copy link

rodrigo98rm commented Jan 2, 2018

Worked for me! Thanks a lot!

Copy link

victoriahawkins commented Jan 5, 2018


Copy link

camden-kid commented Feb 23, 2018

Copy link

hanksudo commented Mar 20, 2018


Copy link

richardleandro1 commented Apr 26, 2018

Thank you

Copy link

litoarias commented May 17, 2018

Work for me!! Great

Copy link

Brandons42 commented Jun 13, 2018

Thank you!

Copy link

ghost commented Jun 20, 2018

Thanks!!!!!!! 👍

Copy link

ValiantCuriosity commented Jul 9, 2018

Most Helpful. :-D

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:
The command is:
sudo /Library/Extensions/intelhaxm.kext/Contents/Resources/

Copy link

Akramz commented Jul 26, 2018

Thank you!

Copy link

rathorevaibhav commented Aug 25, 2018

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

Copy link

evgeniyd commented Sep 18, 2018

Hi. Thank you for this list.

How about?

~/Library/Saved\ Application\ State/

Copy link

lucifer662607004 commented Oct 30, 2018

Hi. Thank you for this list.

How about?

~/Library/Saved\ Application\ State/

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

Copy link

evandrix commented Dec 14, 2018

where to configure Android Studio Cache folder path?

Copy link

scottjmaddox commented Jan 14, 2019

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

Copy link

zehengdong commented Feb 18, 2019

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

Copy link

mon7erey commented Jan 8, 2020

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

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