Free and open source · macOS

Get back the 100 GB
your dev tools hoard.

devsweep finds what Xcode, Android Studio, Docker and package managers leave on your Mac. It tells you what each item is and deletes only what you pick.

npx devsweep

Runs the latest version without installing. Needs Node.js 18.15 or later.

devsweep  pick what to delete

Caches
❯ ◉  14.2 GB  safe    macOS Aerial wallpaper videos
  ◉  10.4 GB  safe    Yarn cache
  ◉   9.8 GB  safe    Xcode DerivedData
  ◉   7.1 GB  safe    Gradle caches
Xcode and simulators
  ○  19.3 GB  review  iOS 18.6 simulator runtime (22G86)  last used 4 months ago
  ○  10.6 GB  review  iOS 26.5 simulator runtime (23F77)  newest
Android
  ○   2.9 GB  review  Android NDK 23.1.7779620  not pinned in scanned projects
  ○   2.4 GB  review  Android NDK 27.0.12077973  pinned by shop-app
  ○   4.2 GB  review  Android system image android-34  no emulator uses it
Containers
  ○  17.6 GB  review  Colima VM "default"  stopped
────────────────────────────────────────────────────────────────────
  Downloaded screen saver and wallpaper videos. macOS downloads them
  again while an Aerial wallpaper or screen saver is on.
 4 selected, 41.5 GB
 ↑↓ move  space toggle  s safe only  a all  n none  enter continue  q quit

Built to be safe on a work machine

Generic cleaners guess. devsweep knows what developer tools store, and it checks whether you still use each item before it offers to delete it.

Safe and review, never mixed

Caches that rebuild themselves are marked safe and preselected. Anything you might still want is marked review, and you pick it yourself.

Knows what you still use

It reads ndkVersion from your Gradle files, checks which system images your emulators boot, and flags the newest simulator runtime.

Explains every item

Each line says what the item is and what happens after you delete it, such as "Xcode rebuilds them on the next build".

No sudo, no surprises

devsweep never asks for your password. It deletes only inside your home folder and Android SDK, and it uses each tool's own delete command where one exists.

Fast

A full scan, including every node_modules folder in your projects, typically takes a few seconds.

Scriptable

devsweep scan --json for reports, devsweep clean --safe --yes for a cron job, and --dry-run to see before you delete.

What it cleans

devsweep lists only what exists on your Mac and skips anything empty.

ItemMarkedHow it comes back
Xcode DerivedData, simulator cachessafeXcode rebuilds them on the next build
npm, Yarn, pnpm, Bun, pip, Go, CocoaPods, Homebrew and Gradle cachessafeThe next install downloads what it needs
macOS Aerial wallpaper videossafemacOS downloads them while an Aerial wallpaper is on
Simulators with no installed runtimesafeNothing can boot them
iOS, watchOS, tvOS and visionOS simulator runtimesreviewXcode > Settings > Components
iOS device symbols (DeviceSupport)reviewXcode copies them when the device connects
Android NDK versions and system imagesreviewGradle or the SDK Manager installs them again
Android emulatorsreviewCreate a new one in Device Manager
Docker images, stopped containers, build cachereviewThe next pull or build. Volumes are kept
Colima VMsreviewcolima start creates a fresh one
Ollama modelsreviewollama pull
node_modules in your projectsreviewYour package manager's install command
Xcode Archives, ~/.cache, Playwright browsersreviewArchives don't come back. Keep the ones you need for crash reports

Usage

Run it with no arguments for the checklist. Every command shows the list and asks before it deletes anything, unless you pass --yes.

# Scan, tick items in a checklist, confirm, delete
devsweep

# See what's there and delete nothing
devsweep scan
devsweep scan --json

# Delete every safe cache
devsweep clean --safe

# Delete by id. A trailing * matches a group
devsweep clean xcode-derived-data 'ndk:*' --dry-run

# Look for node_modules and NDK pins in your own folders
devsweep --projects ~/work --projects ~/oss

Questions

Will this break my projects?

Safe items are caches that their tools rebuild on demand, so the cost is a slower first build or install. Review items are never preselected. devsweep marks the ones it thinks you still use, such as an NDK that a project pins or an image that an emulator boots.

Why doesn't free space go up by the full amount right away?

macOS deletes simulator runtimes in the background and APFS can hold space in local snapshots for a while. devsweep prints free space before and after. The rest usually shows up within a few minutes.

Does it work on Linux or Windows?

Not yet. Most of what it looks for is specific to macOS. It runs on other systems but finds little.

Does it send any data anywhere?

No. devsweep has no dependencies, no telemetry and no network calls. The curl installer downloads the release from GitHub, and that is the only request.

How do I uninstall it?

brew uninstall devsweep, npm uninstall -g devsweep, yarn global remove devsweep, or curl -fsSL https://devsweep.jalaj.fyi/install.sh | bash -s -- --uninstall.