Developer storage
How to Uninstall Android Studio on Mac: Delete by Owner, Not by Name
Most guides ranking for this topic give you a list of rm -rf commands that match names like AndroidStudio*. That fails in two ways: it misses large folders that do not have Android Studio in their name, and it deletes shared folders that other tools still depend on. This guide sorts every location by who owns it.
Short answer

On this page
- Why the copy-paste uninstall lists go wrong
- Who owns each Android Studio folder on Mac?
- What the ownership map shows
- Three checks before deleting anything
- Remove in tiers instead of one rm -rf sweep
- What if you installed Android Studio with Homebrew?
- Clean up leftover shell startup lines
- What’s safe to delete
- Manual uninstall checklist
- The Diskfern way
- Frequently asked questions
- Sources
Why the copy-paste uninstall lists go wrong
Copy-paste terminal lists fail for three predictable reasons: outdated folder prefixes, hidden multi-gigabyte directories with unrelated names, and destructive wildcards that erase shared developer state.
- Some paths do not match where current versions store files. Older guides, such as the Ampersand Academy Medium post (https://medium.com/ampersand-academy/how-to-completely-uninstall-android-studio-on-mac-os-156c7f9c848b), target ~/Library/Application Support/AndroidStudio*, ~/Library/Caches/AndroidStudio*, and ~/Library/Logs/AndroidStudio* without a Google subfolder. Google's troubleshooting page lists macOS folders with a Google level in between: ~/Library/Application Support/Google/AndroidStudioVERSION, ~/Library/Caches/Google/AndroidStudioVERSION, and ~/Library/Logs/Google/AndroidStudioVERSION. The folder prefix is AndroidStudio for stable releases and AndroidStudioPreview for RC and Canary builds, and version names can include a patch segment such as AndroidStudio2026.1.3. Even newer tutorials slip on this: the GeeksforGeeks guide adds Google/ variants for Preferences, Application Support, and Logs, while its Caches line has none.
- Big folders do not carry the name at all. Gradle's downloaded JDKs, the emulator's virtual-device disks, and the Kotlin/Native compiler all sit under other names.
- Some lists delete too much. Several guides, including both GeeksforGeeks and Ampersand Academy, remove all of ~/.gradle, ~/.android, and ~/AndroidStudioProjects, or run broad wildcards like ~/Library/Preferences/com.google.android.* and ~/Library/Preferences/com.android.* that can affect other Google or Android tools.
For a broader look at how macOS separates app support data from rebuildable caches, see our guide to which Mac Library folders are safe to delete.
Read more: Android Developers: Troubleshoot Android Studio directories · GeeksforGeeks: Uninstall Android Studio on Mac · Ampersand Academy: Uninstall Android Studio on Mac OS
Who owns each Android Studio folder on Mac?
Before running any cleanup command, sort every Android-related path on your Mac by what it stores, what else depends on it, and what breaks if you remove it.
| Location | What it is | Who else may depend on it | If you delete it |
|---|---|---|---|
/Applications/Android Studio.app | The IDE, which bundles its own JDK (Contents/jbr/Contents/Home on current builds) | Flutter, which uses that bundled JDK by default | Flutter loses its Java runtime unless JAVA_HOME or java on PATH is set. Configure one with flutter config --jdk-dir |
~/Library/{Application Support,Caches,Logs}/Google/AndroidStudio* | IDE settings, plugins, caches, and logs (Caches may not exist on every setup) | Nothing else | Studio settings and plugin state reset |
~/Library/Preferences/com.google.android.studio.plist and Saved Application State/com.google.android.studio.savedState | macOS preference plist and saved window state for Android Studio (savedState may be absent) | Nothing else | Window and preference state reset |
~/Library/Android/sdk | Default Android SDK location | Anything reading ANDROID_HOME; build tools, CLI utilities, and Gradle use it | Builds elsewhere cannot find the SDK |
~/.android/avd/ and ~/Library/Preferences/com.android.Emulator.plist | Emulator virtual-device disk images (Google calls them very large) and emulator preferences | Command-line Android Emulator runs outside Studio | Virtual devices and Quick Boot snapshots are lost |
~/.android/debug.keystore | Auto-generated debug signing key | External services tied to its SHA-1/SHA-256 fingerprint | Regenerated on the next debug build with a new fingerprint |
~/.gradle/jdks | JDKs downloaded by Gradle's toolchain support | Every Gradle project using Java toolchains | Re-downloaded only if the project has a toolchain resolver configured |
~/.gradle/caches, wrapper/dists, daemon | Dependency caches, Gradle versions, and daemon logs | Every Gradle project on your Mac | Re-downloaded on the next build |
~/.konan | Kotlin/Native compiler and prebuilt platform libraries | Kotlin Multiplatform and Kotlin/Native projects | Re-downloaded when needed |
/tmp/android-<user>/ and $TMPDIR | Emulator temp files for guest RAM backing, documented in a 2018 Google post | Nothing when no emulator is running | Safe when idle, though /tmp links to /private/tmp and modern macOS uses $TMPDIR; verify which path exists first |
Read more: Android Developers: Environment variables · Gradle: Managed directories and cache cleanup · Kotlin: Native platform libraries
What the ownership map shows
Looking at ownership reveals five common traps that standard uninstall guides gloss over.
- The debug key is not precious, but release keys are. Google's app-signing docs explain that Studio creates debug.keystore in ~/.android and generates a new one on the next debug build if deleted. Because a new key has a new fingerprint, update any OAuth or Firebase configuration tied to the old one. Your real release keystore is different: Google's wizard lets you choose the Key store path yourself, so production keys can sit anywhere on your Mac, often inside project folders.
- Gradle manages most of ~/.gradle itself. Per Gradle's directory layout documentation, unused released wrapper distributions and version-specific release caches are deleted after 30 days of inactivity, and daemon logs older than 14 days are cleaned automatically. Deleting caches usually triggers a re-download rather than permanent loss.
- A deleted Gradle JDK may not come back on its own. A Gradle forum thread explains that since Gradle 8, you must configure a toolchain resolver repository (such as Foojay) in settings.gradle or settings.gradle.kts. Without one, a missing JDK is not fetched automatically.
- Flutter may be borrowing Android Studio's JDK. Flutter's documentation explains that Flutter defaults to the JDK bundled with Android Studio before falling back to JAVA_HOME or PATH, and shows how to point Flutter elsewhere with flutter config --jdk-dir.
- Emulator disks are the part worth sizing first. Each AVD lives in ~/.android/avd/<name>.avd/, and Quick Boot auto-save defaults to Yes. The emulator also refuses to start unless at least 5 GB of free disk space is available.
If your goal is reclaiming space while keeping Android Studio installed, follow our dedicated guide on Android emulator and SDK storage on Mac.
Read more: Android Developers: Sign your app · Gradle forum: Toolchain auto-download · Flutter: Android Java and --jdk-dir · Android Developers: Emulator snapshots · Android Developers: Emulator troubleshooting
Three checks before deleting anything
Run these read-only checks first so you know which tools rely on the SDK, whether real signing keys sit inside folders you plan to remove, and how much space each tier actually uses.
1. See who uses your SDK and JDK
echo "ANDROID_HOME=$ANDROID_HOME JAVA_HOME=$JAVA_HOME"If you use Flutter, also run flutter doctor -v to see which Java binary it resolves. Inside a Gradle project, run ./gradlew -q javaToolchains to list every discovered JDK, including ones marked Auto-provisioned by Gradle.
2. Find real signing keys
find ~ \( -name "*.jks" -o -name "*.keystore" \) 2>/dev/nullReview the paths before deleting anything. Alongside ~/.android/debug.keystore, this search often turns up release or upload keystores inside project directories, plus harmless tool keys such as ~/.gradle/caches/.../cc-keystore/gradle.keystore or third-party engine keys like Godot's debug.keystore. Note that macOS privacy restrictions skip protected folders inside ~/Library.
3. Measure before you decide
du -sh ~/Library/Android/sdk ~/.android/avd ~/.gradle/jdks ~/.gradle/caches ~/.gradle/wrapper/dists ~/.konan ~/Library/Caches/Google/AndroidStudio* 2>/dev/nullAlso check whether ANDROID_AVD_HOME or ANDROID_USER_HOME is set. Google's environment variables docs state that the emulator checks $ANDROID_AVD_HOME, then $ANDROID_USER_HOME/avd/, and finally $HOME/.android/avd/, so your AVD disk images may not be inside ~/.android at all.
Read more: Android Developers: Environment variables
Remove in tiers instead of one rm -rf sweep
Separating IDE files from SDKs, emulator disks, and shared build caches lets you reclaim gigabytes cleanly without breaking other projects on your Mac.

Tier 1: Files only Android Studio owns
Run the ls -d preview line first. It only lists what exists on your Mac before you remove anything:
ls -d ~/Library/Application\ Support/Google/AndroidStudio* ~/Library/Caches/Google/AndroidStudio* ~/Library/Logs/Google/AndroidStudio* 2>/dev/nullThen remove the app bundle and its own IDE state (the AndroidStudio* pattern also matches AndroidStudioPreview folders; savedState and Caches may not exist on every system):
rm -rf "/Applications/Android Studio.app"
rm -rf ~/Library/Application\ Support/Google/AndroidStudio*
rm -rf ~/Library/Caches/Google/AndroidStudio*
rm -rf ~/Library/Logs/Google/AndroidStudio*
rm -f ~/Library/Preferences/com.google.android.studio.plist
rm -rf ~/Library/Saved\ Application\ State/com.google.android.studio.savedStateTier 2: Only if you are leaving Android development
After checking for real keystores and custom ANDROID_AVD_HOME paths, delete ~/Library/Android/sdk, your emulator disks in ~/.android/avd, and ~/Library/Preferences/com.android.Emulator.plist (or move them to Trash first). Keep ~/AndroidStudioProjects untouched unless you explicitly want to delete your source code.
Tier 3: Shared build tooling
Do not delete ~/.gradle as a routine step. If you want space back, ~/.gradle/jdks and ~/.gradle/caches are the biggest candidates, along with ~/.konan if you do not build Kotlin Multiplatform projects.
What if you installed Android Studio with Homebrew?
Plain brew uninstall removes the application bundle, while --zap reaches into your user directories and deletes much more than most developers expect.
Homebrew's android-studio cask defines a zap stanza that trashes ~/.android, ~/Library/Android/sdk, the three Google/AndroidStudio* folders (Application Support, Caches, and Logs), com.android.Emulator.plist, com.google.android.studio.plist, and com.google.android.studio.savedState, and runs rmdir on ~/AndroidStudioProjects and ~/Library/Android if empty. That means brew uninstall --zap android-studio removes your emulator disks and debug key too, while a plain brew uninstall android-studio does not.
The separate android-commandlinetools cask uses a different SDK root, $(brew --prefix)/share/android-commandlinetools. That means a Mac can have two independent Android SDKs. Run brew info --cask android-commandlinetools before uninstalling so you can verify what the current cask deletes.
Read more: Homebrew Formulae: android-studio cask · Homebrew Formulae: android-commandlinetools cask
Clean up leftover shell startup lines
Google's setup documentation has you export ANDROID_HOME and add SDK subfolders such as platform-tools, emulator, and cmdline-tools/latest/bin to PATH in your shell startup file (~/.zshrc or ~/.zprofile for zsh). After deleting the SDK, those lines point nowhere. Remove them, and check for STUDIO_JDK or JAVA_HOME exports too.
Read more: Android Developers: Environment variables
What’s safe to delete?
Android Studio.app and Google/AndroidStudio* folders
Safe (Tier 1)/Applications/Android Studio.app and ~/Library/{Application Support,Caches,Logs}/Google/AndroidStudio*
Removes the IDE, plugins, caches, and logs; resets Studio preferences. Flutter loses Studio's bundled JDK unless another JDK is configured.
How: Quit Studio, verify with ls -d, then move the app and Studio-only folders to Trash or remove them in Tier 1.
Android SDK and AVD emulator disks
Review first (Tier 2)~/Library/Android/sdk, ~/.android/avd/, and ~/Library/Preferences/com.android.Emulator.plist
Frees tens of gigabytes, but breaks command-line Android builds and erases virtual devices and Quick Boot snapshots.
How: Confirm no CLI tools, React Native/Flutter builds, or emulator state are still needed before removing.
Shared Gradle, Kotlin/Native, and release keystores
Verify dependencies (Tier 3)~/.gradle, ~/.konan, and project *.keystore / *.jks files
Deleting ~/.gradle forces re-downloads across all JVM/Android projects and can break builds without a Gradle 8+ toolchain resolver; deleting a release keystore permanently prevents publishing app updates.
How: Run find ~ for *.jks/*.keystore first. Leave ~/.gradle intact or prune only caches and jdks intentionally.
Never delete ~/.gradle or ~/.android without checking keys and dependencies
A single release .keystore or active Gradle/Flutter toolchain dependency can turn a quick cleanup into a broken build or lost app-signing access. Always inspect ownership first.
Manual uninstall checklist
Inspect ownership and sizes before deleting, then remove one tier at a time.
- 1
Check active SDK/JDK consumers and search for real signing keys.
$find ~ \( -name "*.jks" -o -name "*.keystore" \) 2>/dev/nullKeep any release or upload keystore inside your project folders safe before cleaning.
- 2
Measure SDK, AVD, Gradle, and Kotlin/Native sizes so you know where the space actually lives.
$du -sh ~/Library/Android/sdk ~/.android/avd ~/.gradle/jdks ~/.gradle/caches ~/.gradle/wrapper/dists ~/.konan ~/Library/Caches/Google/AndroidStudio* 2>/dev/null - 3
Preview and remove Tier 1 IDE-only files (app, Google/AndroidStudio* folders, studio plist, and savedState).
$ls -d ~/Library/Application\ Support/Google/AndroidStudio* ~/Library/Caches/Google/AndroidStudio* ~/Library/Logs/Google/AndroidStudio* 2>/dev/null - 4
Decide separately on Tier 2 (SDK, AVDs, Emulator plist) and Tier 3 (~/.gradle/jdks, caches, ~/.konan), then clean up ~/.zshrc or ~/.zprofile exports.
The Diskfern way
How Diskfern helps
Diskfern scans your Mac and highlights developer folders by real disk allocation so you can spot hidden multi-gigabyte AVDs, SDKs, and Gradle caches before touching anything.
- Run a free scan in Diskfern and inspect your Home and Library folders in Treemap or List view.
- Review ~/Library/Android/sdk, ~/.android/avd, ~/.gradle, and ~/.konan side by side before deciding which tier to remove.
- Move approved folders to the macOS Trash in Diskfern Pro so you can restore anything before emptying Trash.
Finding and reviewing is free. Moving items to the Trash from Diskfern is part of Pro.
Scan your Mac freeFrequently asked questions
Where does Android Studio store files on a Mac?
Does dragging Android Studio to Trash remove the SDK and emulators?
Is it safe to delete ~/.gradle when uninstalling Android Studio?
What does brew uninstall --zap android-studio delete?
What happens if I delete ~/.android/debug.keystore?
Written by
Diskfern Team
We explain Mac storage using product behavior and the sources listed below. Review your app settings and backups before removing data.
Sources
- Android Developers: Troubleshoot Android Studio directories · checked December 1, 2026
- Android Developers: Environment variables · checked December 1, 2026
- Android Developers: Sign your app · checked December 1, 2026
- Android Developers: Emulator snapshots · checked December 1, 2026
- Android Developers: Emulator troubleshooting · checked December 1, 2026
- Gradle Documentation: Directory layout and cache retention · checked December 1, 2026
- Gradle Forum: Java toolchain auto-download in Gradle 8+ · checked December 1, 2026
- Kotlin Documentation: Native platform libraries (~/.konan) · checked December 1, 2026
- Flutter Documentation: Android Java Gradle errors and --jdk-dir · checked December 1, 2026
- Homebrew Formulae: android-studio cask · checked December 1, 2026
- Homebrew Formulae: android-commandlinetools cask · checked December 1, 2026
- Android Studio Blog: Emulator 28.0.16 Stable (2018) · checked December 1, 2026
- GeeksforGeeks: How to Completely Uninstall Android Studio on Mac · checked December 1, 2026
- Ampersand Academy (Medium): How to Completely Uninstall Android Studio on Mac OS · checked December 1, 2026
Keep reading
Explore more developer storage guides, cache management, and tools.
Android emulator & SDK storage on Mac
Android Virtual Devices, SDK platforms, and Gradle caches can add up to tens of gigabytes. Here's what each one is and what's safe to remove.
Is it safe to delete Application Support on Mac?
Application Support in ~/Library holds app databases, extensions and settings. See what happens if you delete it and how to clean orphaned app data safely.
Which Mac Library folders are safe to delete?
A folder-by-folder guide to ~/Library on Mac: Caches, Application Support, Group Containers and more. See what's safe to delete and what breaks apps.
Mac cleanup after leaving a job
Find large work-era downloads, project copies, recordings, and developer files on a personal Mac. Check ownership, offboarding instructions, and sync behavior before removing anything.
Developer storage analyzer
Bring Xcode, Android, Docker, package caches, and local AI models into one readable map.
Get your space back. Start with a free scan.
Explore the files and folders Diskfern can read. Your files stay on your Mac, and nothing is removed until you say so.
macOS 14 Sonoma or later · Apple silicon and Intel