Bytewell
  • Features
  • Pricing
  • Menu
    • Features
    • Pricing
  • EN
    • English
    • Deutsch
    • Español
    • 日本語
    • Türkçe
    • 简体中文
    • 繁體中文
  • Download
Bytewell›Guides

Android Studio taking up space on your Mac: what can you delete?

Updated November 7, 2026

When Android Studio is taking up space on a Mac, the app itself is the small part. The bulk is emulators, the SDK's system images, Gradle's download caches and each project's build folders, spread over several hidden folders in your home folder.

The short answer: delete emulators you don't use in Device Manager, and system images you no longer test on in SDK Manager. Gradle's caches (~/.gradle/caches and ~/.gradle/wrapper/dists) and Maven's ~/.m2/repository are downloads: safe to delete with Android Studio closed, and the next build fetches what it needs. Libraries you put in the Maven repository yourself with mvn install or publishToMavenLocal only come back when you rebuild them. Empty Flutter's ~/.pub-cache with dart pub cache clean. Build folders go with ./gradlew clean.

On this page

  1. Where does Android Studio use space on a Mac?
  2. How do I delete an Android emulator on a Mac?
  3. How do I remove Android SDK system images?
  4. Is it safe to clean the Gradle cache?
  5. How do I clean an Android project's build folders?
  6. What about folders from older Android Studio versions?

Where does Android Studio use space on a Mac?

  • Emulators (AVDs): ~/.android/avd, one folder per virtual device with its disk images and snapshots.
  • SDK: ~/Library/Android/sdk, the location shown in SDK Manager as Android SDK Location. Emulator system images are in its system-images folder.
  • Gradle: ~/.gradle/caches (dependencies and build caches) and ~/.gradle/wrapper/dists (one full Gradle per version your projects ask for).
  • Maven: ~/.m2/repository, if you build with Maven or publish libraries locally.
  • Flutter and Dart: ~/.pub-cache, the packages flutter pub get downloads.
  • Android Studio itself: settings in ~/Library/Application Support/Google/AndroidStudio<version>, caches and indexes in ~/Library/Caches/Google/AndroidStudio<version>, logs in ~/Library/Logs/Google/AndroidStudio<version>.
  • Each project: its build folders and a .gradle folder; Flutter projects also have .dart_tool.

To see the sizes yourself:

du -sh ~/.android/avd ~/Library/Android/sdk/system-images ~/.gradle/caches ~/.gradle/wrapper/dists ~/.m2/repository ~/.pub-cache 2>/dev/null

How do I delete an Android emulator on a Mac?

  1. In Android Studio, choose View › Tool Windows › Device Manager. From the Welcome screen it's under More Actions › Virtual Device Manager.
  2. Click the menu (⋮) next to the device and choose Delete.

The same menu has Wipe Data, which keeps the device but empties its user data, and Show on Disk. An emulator holds the apps and data you put on it; deleting it doesn't touch the system image it was made from, so you can create a new one in a minute. With the SDK's command-line tools installed, avdmanager list avd and avdmanager delete avd -n <name> do the same.

How do I remove Android SDK system images?

  1. Open Tools › SDK Manager.
  2. Find each system image you no longer test on and clear its checkbox. A red X marks it for removal.
  3. Click Apply or OK and confirm.

Remove images through SDK Manager rather than the Finder, so the SDK's list of installed packages stays right. Emulators that use a removed image stop starting, so delete those first. From Terminal, sdkmanager --list shows what's installed and sdkmanager --uninstall "system-images;android-34;google_apis;arm64-v8a" removes one, using the exact package name from that list.

Is it safe to clean the Gradle cache?

Yes. Everything in ~/.gradle/caches and ~/.gradle/wrapper/dists is downloaded or rebuilt; the next build is slower and needs the network, nothing more. Quit Android Studio, stop the Gradle daemons from a project folder, then move the two folders to the Trash:

./gradlew --stop
du -sh ~/.gradle/caches ~/.gradle/wrapper/dists

Gradle already removes cache entries it hasn't used for 30 days, so what's left is mostly what your current projects use. Deleting wrapper/dists pays off most when old projects pinned Gradle versions you no longer build with. Leave ~/.gradle/gradle.properties and init.d alone: those are your settings. The same goes for Maven's ~/.m2/repository (keep ~/.m2/settings.xml), except that libraries you installed there with mvn install or publishToMavenLocal only come back when you rebuild them. For Flutter, run dart pub cache clean rather than deleting ~/.pub-cache by hand: it asks before it empties the folder. Either way, tools you installed with dart pub global activate live in that folder and go too, so activate them again afterwards.

How do I clean an Android project's build folders?

cd ~/path/to/project
./gradlew clean

./gradlew clean deletes the project's build folders; the next build recreates them. For a Flutter project, flutter clean deletes build and .dart_tool. The per-project .gradle folder is a cache too and comes back on the next sync. Projects you've finished with are where this adds up, since nothing cleans their build output on its own.

What about folders from older Android Studio versions?

Each version keeps its own AndroidStudio<version> folders in ~/Library/Application Support/Google, ~/Library/Caches/Google and ~/Library/Logs/Google. The first time you run a new major version, Android Studio shows a Delete Unused Android Studio Directories dialog with the folders of versions it can't find installed, their sizes and an option to delete them. If you missed that, the folders of old versions are safe to move to the Trash; keep the ones whose version matches the Android Studio you run now, since they hold your settings and plugins. Xcode leaves the same kind of leftovers: Xcode taking up too much space: what's safe to delete. For JavaScript and Rust caches next to these, see How to find and delete old node_modules folders and package caches on a Mac.

Bytewell's Cleanup shows this in one list with sizes: Gradle caches and distributions, the Maven repository and the Dart and Flutter package cache marked Safe, each emulator marked Review, and system images with a note to remove them in SDK Manager. It also finds the build, .gradle and .dart_tool folders in every project. Cleanup is free. Projects (Pro) groups those folders by project, with when you last worked on it and whether git has uncommitted changes. What you remove goes to the Trash, with Undo.

Download Buy Pro · $19.99

14-day Pro trial · No account, no card

Guides

  • Claude Code, Codex and Cursor disk usage: what's safe to cleanWhere Claude Code, Codex, Gemini CLI, Cursor and VS Code keep transcripts, worktrees, runtimes and editor state on a Mac, and which of it you can safely remove.
  • I deleted an app on my Mac. Why are its files still there?Dragging an app to the Trash leaves its settings, caches and data in your Library. Where those leftovers are, how to find them, and which are safe to remove.
  • How much storage does Apple Intelligence use on a Mac?Apple Intelligence storage on Mac: Apple says up to 14 GB on M3 or later with 12 GB of memory, up to 8 GB on others. Where it shows and how to turn it off.
  • How to check disk usage on a Mac in TerminalCheck disk usage in Terminal on a Mac: df for free space, du for folder sizes, diskutil for APFS, ncdu from Homebrew, and why the numbers differ from Finder.
  • How do I clean up git worktrees on my Mac?How to clean up git worktrees on a Mac: list, remove and prune them, delete the branch, and find the ones Claude Code, Codex and Cursor leave behind.
  • How to clear browser history, cookies and recent items on a MacClear browsing history and cookies in Safari, Chrome, Edge, Brave and Firefox, plus macOS's Recent Items and its record of the files you downloaded.
  • How do I delete Time Machine local snapshots on a Mac?Delete local Time Machine snapshots on Mac with tmutil in Terminal, Disk Utility or Time Machine settings. What each command does and why a delete can fail.
  • Where are iPhone backups on a Mac, and how do I delete old ones?Finder keeps iPhone and iPad backups in ~/Library/Application Support/MobileSync/Backup. How to see their size, which to keep, and how to delete old ones.
  • Can Claude Code, Cursor or Codex check and clean my Mac's disk?Let Claude Code, Cursor or Codex check and clean your Mac's disk through an MCP server, with a preview, your approval and the Trash instead of rm.
  • Do I need a cleaner app for my Mac?Most Macs don't need a cleaner app. What macOS already cleans by itself, when a tool really helps, and what to check before any Mac cleaner touches your files.
  • Docker using too much disk space on a Mac: Docker.raw explainedDocker Desktop keeps everything in one file, Docker.raw. Why it looks huge, how to see what uses it, and which docker prune commands free space safely on Mac.
  • How to delete duplicate photos on a MacDelete duplicate photos on your Mac with the Duplicates album in Photos, find copies in Finder folders, and see what Photos misses, such as HEIC and JPEG pairs.
  • How to find duplicate files on a MacFind duplicate files on your Mac by content with one Terminal command, see why Finder copies on APFS may free nothing, and which copies are safe to delete.
  • How to find large files on a MacFind the biggest files on your Mac with Storage settings, Finder or one Terminal command, and spot screen recordings, old installers and videos you forgot.
  • How to free up space on a MacHow to free up space on a Mac: Storage settings, the Trash, Downloads, caches, iPhone backups, snapshots, developer tools and chat apps, most space first.
  • Can I delete iPhone software update files on my Mac?Finder downloads several GB of iPhone and iPad system software to update a device, and keeps it. Where the .ipsw files are and why removing them is safe.
  • Is it safe to delete cache files on my Mac?Most app caches in ~/Library/Caches are safe to delete with the app quit, and the app rebuilds them. Where caches and log files are, and what not to delete.
  • Where Ollama, LM Studio and Hugging Face store models on a MacWhere Ollama, LM Studio and Hugging Face keep local AI models on a Mac, how big they get, how to find the same model stored twice, and how to remove them.
  • How to see which Mac apps need an updateMac apps update in three ways: the App Store, their own updater, or Homebrew. How to check each one, the commands to use, and when it's wiser to wait.
  • My Mac says the disk is full, but Finder shows free spaceYour Mac has two numbers for free space: what's free now, and what's available once macOS removes purgeable data. Why they differ and how to close the gap.
  • What opens at login on my Mac, and how do I turn it off?See what starts with your Mac in System Settings › General › Login Items & Extensions, what the background items are, and how to turn them off safely.
  • How to check a Mac for adware and malwareMost Mac malware is adware that starts on its own. Where launch agents hide, how to spot unsigned or disguised ones, and what XProtect already does for you.
  • Why is my Mac slow? How to see what uses memory and the processorA slow Mac is usually memory pressure, swap or one busy app. How to read Activity Monitor, what memory pressure means, and why memory cleaners don't help.
  • How to check your Mac's SSD health and wearmacOS only says S.M.A.R.T. Verified. How to read your Mac SSD's real wear (Percentage Used, data written, errors), what the numbers mean, and what wears it out.
  • Why is my Mac storage filling up by itself?Mac storage filling up by itself? Usually snapshots, caches, swap, chat media, backups or developer tools. How to find what grows with two du runs a week apart.
  • What is System Data on a Mac, and how do I make it smaller?System Data on a Mac is caches, logs, Time Machine snapshots, swap, iPhone backups, app data and VM disks. What each is, why it grows and what you can remove.
  • How do I check my MacBook's battery health?How to check MacBook battery health: where macOS shows Maximum Capacity and cycle count, what Normal and Service Recommended mean, and when to replace it.
  • Messages and Mail are taking up storage on my MacMessages and Mail keep attachments on your Mac. Where they are, and how to reduce them with Storage settings, Keep messages and Mail's own settings.
  • How to move big files to an external drive on a Mac, safelyFree up Mac storage without deleting: copy big files, AI models and old projects to an external drive, check the copy, then remove the original.
  • How to find and delete old node_modules folders and package caches on a MacFind every node_modules folder on a Mac with one command, clear npm, pnpm, Yarn, Homebrew and Gradle caches, and remove old Node versions and Rust toolchains.
  • Python taking up disk space on your Mac? Clear pip cache, conda and venvsWhere pip, uv, conda, Poetry and pyenv keep files on a Mac, how to clear the pip cache, find every venv with its size and remove old Python versions safely.
  • Why are videos and GIFs on X black in Safari?Videos and GIFs on X (Twitter) black in Safari while the timer runs, fine in Chrome? Safari's video helper is stuck. Quit Safari with Cmd+Q and reopen it.
  • Telegram is taking up storage on my MacTelegram for Mac keeps a copy of every photo and video you open. Where its cache is, how to clear it in Settings › Data and Storage, and what secret chats lose.
  • How do I uninstall an app on my Mac completely?Uninstall apps on Mac completely: Finder and the Trash, the app's own uninstaller, Homebrew's --zap, and the Library files and login items an app leaves behind.
  • What did this installer put on my Mac?A .pkg installer leaves a receipt on your Mac. List what it installed with pkgutil, find helpers it added, and what to do for apps installed from a disk image.
  • What is taking up space on my Mac?See what is taking up space on your Mac with Storage settings, Finder folder sizes, du in Terminal or a disk map, including the hidden Library and System Data.
  • WhatsApp is taking up storage on my MacWhatsApp for Mac keeps every photo, video and voice note from your chats in its Group Container. Where it is, how big it is, and how to reduce it in WhatsApp.
  • Xcode taking up too much space: what's safe to deleteWhere Xcode keeps DerivedData, simulators, runtimes, device support and archives on a Mac, which of them rebuild themselves, and how to remove them safely.
Refunds Security Privacy Terms Contact

Bytewell is made by Axleno.

© 2026 Axleno LLC. All rights reserved.