Last active
October 21, 2022 09:22
-
-
Save droibit/722cafbb485bc20f03ad70e8ec4d857f to your computer and use it in GitHub Desktop.
Clean up Android Studio.
This file contains hidden or 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/bash | |
version=$1 | |
if [[ $version =~ ^(Preview)?[0-9]+\.[0-9]$ ]]; then | |
echo "Clean up Android Studio $version." | |
else | |
echo "You should specify the version(e.g. 3.0 or Preview3.0) of Android Studio." | |
exit 1 | |
fi | |
rm -rfv $HOME/Library/Application\ Support/AndroidStudio$version | |
rm -rfv $HOME/Library/Caches/AndroidStudio$version | |
rm -rfv $HOME/Library/Logs/AndroidStudio$version | |
rm -rfv $HOME/Library/Preferences/AndroidStudio$version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment