If you have Android Studio and the associate SDKs then there may be a time in which you are looking for a fresh install or you might be looking for more hard-drive space. In any case, this small article will cover how to clean your computer of your Android Development Environment.
Removing Android Studio and Android SDK
To begin, go to the directory where Android Studio was installed. If you installed Android Studio following our installation tutorial then Android Studio should be located at C:\DevTools\Android\Andorid Studio.
After navigating to the directory, double click on uninstall.exe, to run the executable.
After clicking the executable, the following dialog box should appear. If you are planning to reinstall a fresh Android Studio after this uninstall process, and you want to keep your saved Android Virtual Devices (AVDs), Android SDK caches, and, potentially, app signing keystores then leave Android User Settings unchecked.
Then, click the Next button, followed by the Uninstall button to start the uninstallation process of Android Studio. … and go make a sandwich! 🙂
After the uninstallation process has been completed, click the Close button to close the dialog box.
Removing the Android Native Development Kit (the NDK)
After removing Android Studio and the SDK, all of the hooks for the NDK into Android Studio has been removed. To remove the NDK, just simply go to the directory and delete its contents. If you setup the NDK using our tutorial then the location is C:\DevTools\Android\NDK.
Removing the Java Development Kit (the JDK)
This step is optional, because the JDK may be used with other development environments, such as Eclipse and/or MS Visual Studio. However, to remove it, just simply go the JDK directory and delete the directory contents. If you setup JDK using our tutorial then the location is C:\DevTools\Java.
Removing the relevant Windows environment variables
This step is also optional, but strongly recommended, especially if you are planning to reinstall JDK and/or Android Studio and friends.
Go to the Windows System Variables dialog by searching for “Advanced System Settings” within Windows Search (via the Windows icon in the lower left hand corner).
After bringing up the dialog, if not there open the tab Advanced and select the button Environment Variables … .
If you have it, you will need to delete the environment variable pointing to Android SDK home, for the logged in user. If you have followed our installation tutorial, the variable name is ANDROID_SDK_HOME.
You will also need to delete the environment variables pointing to the Android SDK, NDK and JDK, which if you followed our tutorial and setup are ANDROID_SDK, ANDROID_NDK, and JDK.
The last and final step is to remove references to the deleted environment variables from the Path environment variable. To begin, select the Path environment variable and then select the Edit… button. The Path environment variable references the locations that are delimited by a semicolon. Therefore we need to remove the references that have our deleted environment variables and ends with the semicolon, for example the following.
WARNING: Be careful not to delete any other references!
Congratulations! You have successfully removed Android Studio and all of its associate development environment tools. If you are looking to perform a fresh install, please check out our installation tutorial.If you enjoyed our material please contribute! Or, please check out our affiliation with Amazon, and their current deals.
Please, keep your comments family friendly and respectful of each other and the author.