Created
August 31, 2021 01:09
-
-
Save bberak/556d8c8b95730871b472c4df1dd1f4c5 to your computer and use it in GitHub Desktop.
Remove Android Studio and its artefacts from MacOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Source: https://stackoverflow.com/a/64836177/138392 | |
# Prequisites: MacOS and Android Studio 4+ installed | |
# Usage: bash remove-android-studio.sh | |
# 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/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/Google/AndroidStudio* | |
# Deletes all logs that Android Studio outputs | |
rm -Rf ~/Library/Logs/Google/AndroidStudio* | |
# Deletes Android Studio's caches | |
rm -Rf ~/Library/Caches/Google/AndroidStudio* | |
# Deletes older versions of Android Studio | |
rm -Rf ~/.AndroidStudio* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment