Removing or uninstalling the android studio from Ubuntu is easy. Using the following instructions we can uninstall the android studio from Ubuntu:
Note: The following steps are tested with both Ubuntu 16.04 or 18.04
- Delete the android-studio folder
- Delete the sdk folder if it is in not inside the android-studio directory
- Delete ~/.AndroidStudio/, which contains config and system;
- Delete ~/.android;
- Delete ~/.local/share/applications/jetbrains-studio.desktop, if it exists.
Here is another good source for uninstalling android studio from ubuntu.
Once we are done uninstalling android studio from ubuntu if we want to install it again here is a good source.