Skip to content

Instantly share code, notes, and snippets.

@diegorribeiro
Last active October 27, 2022 23:52
Show Gist options
  • Save diegorribeiro/3d2e82e4aa021b9fbcb829a47f499323 to your computer and use it in GitHub Desktop.
Save diegorribeiro/3d2e82e4aa021b9fbcb829a47f499323 to your computer and use it in GitHub Desktop.
Remove Android-Studio completely on Mac [Android, Emulators, Platform Tools and More]

Execute these commands in the terminal (excluding the lines with hashtags - they're comments):

Deletes the Android Studio application

Note that this may be different depending on what you named the application as, or whether you downloaded the preview version

rm -Rf /Applications/Android\ Studio.app

Delete All Android Studio related preferences

The asterisk here should target all folders/files beginning with the string before it

rm -Rf ~/Library/Preferences/AndroidStudio* rm -Rf ~/Library/Preferences/Google/AndroidStudio*

Deletes the Android Studio's plist file

rm -Rf ~/Library/Preferences/com.google.android.*

Deletes the Android Emulator's plist file

rm -Rf ~/Library/Preferences/com.android.*

Deletes mainly plugins (or at least according to what mine (Edric) contains)

rm -Rf ~/Library/Application\ Support/AndroidStudio* rm -Rf ~/Library/Application\ Support/Google/AndroidStudio*

Deletes all logs that Android Studio outputs

rm -Rf ~/Library/Logs/AndroidStudio* rm -Rf ~/Library/Logs/Google/AndroidStudio*

Deletes Android Studio's caches

rm -Rf ~/Library/Caches/AndroidStudio*

Deletes older versions of Android Studio

rm -Rf ~/.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 keystores.

Note: This folder is used by other Android IDEs 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*

Emulator Console Auth Token

rm -Rf ~/.emulator_console_auth_token

Thanks to those who commented/improved on this answer!

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