• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

TinyGrab

Your Trusted Source for Tech, Finance & Brand Advice

  • Personal Finance
  • Tech & Social
  • Brands
  • Terms of Use
  • Privacy Policy
  • Get In Touch
  • About Us
Home » How to uninstall Android Studio on Linux?

How to uninstall Android Studio on Linux?

July 4, 2025 by TinyGrab Team Leave a Comment

Table of Contents

Toggle
  • How to Completely Uninstall Android Studio on Linux: A No-Nonsense Guide
    • Detailed Steps for a Clean Uninstall
      • 1. Terminating Android Studio
      • 2. Deleting the Installation Directory
      • 3. Eliminating Configuration Directories
      • 4. Wiping Out the Android SDK and Emulator Images
      • 5. Removing the Desktop Entry (Optional)
      • 6. Removing Environment Variables (Optional)
    • FAQ: Common Questions About Uninstalling Android Studio on Linux
      • 1. What if I installed Android Studio using Snap or Flatpak?
      • 2. I can’t find the Android Studio installation directory. Where is it usually located?
      • 3. How can I verify that Android Studio is completely uninstalled?
      • 4. Is it safe to use rm -rf?
      • 5. What should I do if I encounter “Permission denied” errors?
      • 6. I’m still seeing Android Studio-related processes running after the uninstall. What should I do?
      • 7. Can I use a GUI-based file manager instead of the command line?
      • 8. What if I want to uninstall a specific version of Android Studio?
      • 9. Will uninstalling Android Studio delete my projects?
      • 10. How do I remove the Android Virtual Device (AVD) configurations?
      • 11. After uninstalling, is it safe to delete the Android folder in my home directory?
      • 12. I reinstalled Android Studio, but it’s still using my old settings. How do I reset it completely?

How to Completely Uninstall Android Studio on Linux: A No-Nonsense Guide

So, you’re parting ways with Android Studio on your Linux machine? Maybe you’re switching IDEs, need a clean install, or simply reclaiming some precious disk space. Whatever the reason, uninstalling Android Studio on Linux requires a more comprehensive approach than simply deleting the installation directory. Here’s the straight dope on how to surgically remove it, along with all its associated baggage, leaving no trace behind.

The core of the uninstall process involves these key steps:

  1. Close Android Studio: Ensure the application is completely shut down.
  2. Remove the Installation Directory: Delete the directory where you installed Android Studio. The default location is often /opt/android-studio or your home directory.
  3. Remove the Configuration Directories: These contain your settings and preferences. They usually reside in your home directory under .AndroidStudio[version] and .gradle.
  4. Remove Android SDK and Emulator Images: If you installed these separately, you’ll need to remove them as well.
  5. Remove Desktop Entry (Optional): If you want to remove the Android Studio launcher icon from your applications menu, delete the corresponding .desktop file.

Detailed Steps for a Clean Uninstall

Let’s break down each step with the precision of a seasoned Linux veteran.

1. Terminating Android Studio

Before you even think about deleting files, ensure Android Studio is completely closed. Check your system monitor for any running Java processes associated with Android Studio and kill them if necessary. A clean exit is crucial to avoid file corruption or lock issues during the removal process.

2. Deleting the Installation Directory

This is where you physically remove the core Android Studio files. Open a terminal and use the rm command with the -r (recursive) and -f (force) options. The -r option ensures that all subdirectories and files are deleted, while -f suppresses prompts and errors, speeding up the process.

Example:

sudo rm -rf /opt/android-studio 

Important: Replace /opt/android-studio with the actual path to your Android Studio installation directory. If you installed it in your home directory, the path might be something like ~/android-studio. Be absolutely sure you have the correct path before running this command! A mistake here could lead to unintended data loss.

3. Eliminating Configuration Directories

These directories contain your settings, plugins, and other preferences. They typically reside in your home directory and are named .AndroidStudio[version] and .gradle. Deleting these ensures a truly clean slate for any future installations.

Example:

rm -rf ~/.AndroidStudio* rm -rf ~/.gradle 

The * wildcard in ~/.AndroidStudio* ensures that all versions of the Android Studio configuration directory are removed. The .gradle directory contains build cache and dependencies, which can take up a significant amount of space.

4. Wiping Out the Android SDK and Emulator Images

The Android SDK (Software Development Kit) and emulator images are often stored separately. Locating and removing them is crucial for a complete uninstall. By default, the SDK is often located in your home directory under Android/Sdk.

Example:

rm -rf ~/Android/Sdk 

Emulator images can be quite large, so removing them can free up a substantial amount of disk space. Look for them in the Android/Sdk/system-images directory and delete any images you no longer need.

5. Removing the Desktop Entry (Optional)

The desktop entry is what creates the launcher icon in your applications menu. To remove it, locate the .desktop file associated with Android Studio and delete it. These files are typically located in /usr/share/applications or ~/.local/share/applications.

Example:

sudo rm /usr/share/applications/jetbrains-android-studio.desktop 

or

rm ~/.local/share/applications/jetbrains-android-studio.desktop 

The exact filename might vary depending on your distribution and how you installed Android Studio. Look for a file containing “android-studio” in the name.

6. Removing Environment Variables (Optional)

If you manually configured environment variables like ANDROID_HOME or added the Android SDK’s tools and platform-tools directories to your PATH, you’ll need to remove these from your shell configuration file (e.g., .bashrc, .zshrc).

Open your shell configuration file in a text editor and remove the lines that set these environment variables. Then, restart your terminal or source the configuration file to apply the changes.

Example (using .bashrc):

nano ~/.bashrc 

Look for lines like these and delete them:

export ANDROID_HOME=/path/to/android/sdk export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools 

After making the changes, save the file and run:

source ~/.bashrc 

FAQ: Common Questions About Uninstalling Android Studio on Linux

Here are some frequently asked questions to address common concerns and provide additional insights:

1. What if I installed Android Studio using Snap or Flatpak?

If you used Snap or Flatpak to install Android Studio, you should use the corresponding package manager to uninstall it.

  • Snap: sudo snap remove android-studio
  • Flatpak: flatpak uninstall com.google.AndroidStudio

2. I can’t find the Android Studio installation directory. Where is it usually located?

The default installation directory is often /opt/android-studio. However, if you installed it manually, it might be in your home directory (e.g., ~/android-studio) or another location you specified during installation. You can try searching for the installation directory using the find command: sudo find / -name "android-studio" -type d

3. How can I verify that Android Studio is completely uninstalled?

After following the steps above, you can verify the uninstallation by checking the following:

  • The Android Studio installation directory is gone.
  • The .AndroidStudio[version] and .gradle directories are removed from your home directory.
  • The Android SDK directory (usually ~/Android/Sdk) is deleted.
  • The desktop entry for Android Studio is no longer present in your applications menu.
  • Environment variables like ANDROID_HOME are no longer set.

4. Is it safe to use rm -rf?

The rm -rf command is a powerful tool that can permanently delete files and directories. Use it with extreme caution! Double-check the path you’re using before running the command to avoid accidentally deleting important data. A typo can be disastrous.

5. What should I do if I encounter “Permission denied” errors?

If you encounter “Permission denied” errors, it means you don’t have the necessary permissions to delete certain files or directories. Try using sudo before the rm command to run it with root privileges. Be aware that using sudo grants elevated permissions, so ensure you’re only deleting files and directories related to Android Studio.

6. I’m still seeing Android Studio-related processes running after the uninstall. What should I do?

If you’re still seeing Android Studio-related processes running after the uninstall, it’s likely that some background processes or services are still active. Try restarting your computer to ensure that all processes are terminated. You can also manually kill the processes using the kill command in the terminal.

7. Can I use a GUI-based file manager instead of the command line?

Yes, you can use a GUI-based file manager like Nautilus (GNOME) or Dolphin (KDE) to delete the files and directories. However, you’ll still need to run the sudo command in the terminal for some operations, particularly when deleting files in system directories like /opt or /usr/share/applications.

8. What if I want to uninstall a specific version of Android Studio?

If you have multiple versions of Android Studio installed, you’ll need to identify the specific version you want to uninstall and target the corresponding directories. The configuration directories are usually named after the version (e.g., .AndroidStudio4.2).

9. Will uninstalling Android Studio delete my projects?

Uninstalling Android Studio will not delete your projects, as long as your projects are stored in a separate directory from the installation and configuration directories. However, it’s always a good idea to back up your projects before performing any major system changes.

10. How do I remove the Android Virtual Device (AVD) configurations?

AVD configurations are stored in the ~/.android/avd directory. You can delete the contents of this directory to remove the AVD configurations.

11. After uninstalling, is it safe to delete the Android folder in my home directory?

Yes, as long as you’re certain it only contains SDK and AVD related files, and not any of your own project files. Always double-check before deleting anything!

12. I reinstalled Android Studio, but it’s still using my old settings. How do I reset it completely?

Ensure you completely removed the configuration directories (.AndroidStudio*) from your home directory before reinstalling. This is the most common reason why old settings persist.

By following these steps and addressing these common questions, you can confidently and thoroughly uninstall Android Studio from your Linux system, ensuring a clean break and reclaiming valuable resources. Good riddance!

Filed Under: Tech & Social

Previous Post: « Do roof racks lower gas mileage? (Reddit)
Next Post: Is unearned revenue on the income statement? »

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

NICE TO MEET YOU!

Welcome to TinyGrab! We are your trusted source of information, providing frequently asked questions (FAQs), guides, and helpful tips about technology, finance, and popular US brands. Learn more.

Copyright © 2025 · Tiny Grab