Uninstalling Android Studio

If you installed android studio using snap installation,then using this command

snap remove android-studio

will remove android studio


For me (gnome-ubuntu 17.04) this got rid of all android-studio installations I could see:

rm ~/.local/share/applications/androidstudio.desktop
sudo rm -rf /opt/androsudoid-studio/
rm -rf ~/.android/
rm -rf ~/.AndroidStudio2.1/
rm -rf ~/.AndroidStudio2.3/
rm -rf ~/Android
sudo rm -rf /opt/android-studio-ide-143.2790544-linux.zip
rm -rf ~/.gradle

Note: for you the build- and version numbers are probably different.

After that I could do a clean re-install and finally got a clean, working android studio.