Black Friday Sale - 50% off Pro & FamilyGet the deal
Skip to content

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.

Diskfern logo, the app icon of the Mac disk space analyzerDiskfern Team9 min readUpdated

Short answer

Uninstall Android Studio on Mac in three tiers instead of one wildcard sweep: first remove the app and Google/AndroidStudio* IDE folders; second remove ~/Library/Android/sdk, ~/.android/avd, and com.android.Emulator.plist only if you are leaving Android development; and third review ~/.gradle/jdks, ~/.gradle/caches, and ~/.konan separately after checking for real release keystores and Flutter or Gradle dependencies.
Grav using a magnifying glass to trace ownership tags between an isolated Android Studio case, heavy emulator drum, and shared build pipes on Mac
Grav inspecting Android Studio folders on a Mac workbench, tracing ownership cords between the isolated IDE case, heavy emulator disk drum, and shared signing-key and build pipes.
On this page

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.

  1. 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.
  2. 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.
  3. 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.

Ownership map for Android Studio, SDK, emulator, and build folders on macOS
LocationWhat it isWho else may depend on itIf you delete it
/Applications/Android Studio.appThe IDE, which bundles its own JDK (Contents/jbr/Contents/Home on current builds)Flutter, which uses that bundled JDK by defaultFlutter 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 elseStudio settings and plugin state reset
~/Library/Preferences/com.google.android.studio.plist and Saved Application State/com.google.android.studio.savedStatemacOS preference plist and saved window state for Android Studio (savedState may be absent)Nothing elseWindow and preference state reset
~/Library/Android/sdkDefault Android SDK locationAnything reading ANDROID_HOME; build tools, CLI utilities, and Gradle use itBuilds elsewhere cannot find the SDK
~/.android/avd/ and ~/Library/Preferences/com.android.Emulator.plistEmulator virtual-device disk images (Google calls them very large) and emulator preferencesCommand-line Android Emulator runs outside StudioVirtual devices and Quick Boot snapshots are lost
~/.android/debug.keystoreAuto-generated debug signing keyExternal services tied to its SHA-1/SHA-256 fingerprintRegenerated on the next debug build with a new fingerprint
~/.gradle/jdksJDKs downloaded by Gradle's toolchain supportEvery Gradle project using Java toolchainsRe-downloaded only if the project has a toolchain resolver configured
~/.gradle/caches, wrapper/dists, daemonDependency caches, Gradle versions, and daemon logsEvery Gradle project on your MacRe-downloaded on the next build
~/.konanKotlin/Native compiler and prebuilt platform librariesKotlin Multiplatform and Kotlin/Native projectsRe-downloaded when needed
/tmp/android-<user>/ and $TMPDIREmulator temp files for guest RAM backing, documented in a 2018 Google postNothing when no emulator is runningSafe 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/null

Review 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/null

Also 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.

Grav pulling a railway switch lever to route Tier 1 IDE files, Tier 2 emulator disks, and Tier 3 shared Gradle build tanks onto separate tracks
Grav operating a three-track railway switch to separate IDE-only files (Tier 1), heavy SDK and AVD disks (Tier 2), and shared Gradle or Kotlin tooling (Tier 3).

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/null

Then 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.savedState

Tier 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. 1

    Check active SDK/JDK consumers and search for real signing keys.

    $find ~ \( -name "*.jks" -o -name "*.keystore" \) 2>/dev/null

    Keep any release or upload keystore inside your project folders safe before cleaning.

  2. 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. 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. 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.

  1. Run a free scan in Diskfern and inspect your Home and Library folders in Treemap or List view.
  2. Review ~/Library/Android/sdk, ~/.android/avd, ~/.gradle, and ~/.konan side by side before deciding which tier to remove.
  3. 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 free

Frequently asked questions

Where does Android Studio store files on a Mac?
Current macOS builds store IDE configuration, plugins, caches, and logs under ~/Library/Application Support/Google/AndroidStudioVERSION, ~/Library/Caches/Google/AndroidStudioVERSION, and ~/Library/Logs/Google/AndroidStudioVERSION, using AndroidStudioPreview for RC and Canary builds.
Does dragging Android Studio to Trash remove the SDK and emulators?
No. Dragging /Applications/Android Studio.app to Trash leaves behind ~/Library/Android/sdk, emulator disk images in ~/.android/avd/, IDE settings in ~/Library/Application Support/Google/, and shared Gradle caches in ~/.gradle.
Is it safe to delete ~/.gradle when uninstalling Android Studio?
Avoid deleting all of ~/.gradle routinely. Other Java, Kotlin, or React Native projects share it, and since Gradle 8 missing toolchain JDKs in ~/.gradle/jdks only auto-download if a project configures a toolchain resolver repository.
What does brew uninstall --zap android-studio delete?
Homebrew's android-studio zap stanza trashes ~/.android (including AVDs and debug.keystore), ~/Library/Android/sdk, the Google/AndroidStudio* Application Support/Caches/Logs folders, com.android.Emulator.plist, com.google.android.studio.plist, and savedState, and runs rmdir on ~/AndroidStudioProjects and ~/Library/Android if empty.
What happens if I delete ~/.android/debug.keystore?
Android Studio or Gradle regenerates debug.keystore on the next debug build, but with a new signing fingerprint. Your real release keystore is stored wherever you saved it and is not recreated automatically.
Diskfern logo, the app icon of the Mac disk space analyzer

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

Diskfern app icon for macOS, the disk space analyzer that shows what is filling your Mac storage

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