Esta página también está en español. Ver en español

Leaner

Reclaim the disk space Xcode, Gradle, Maven, node and the simulators eat.

A native app for macOS 14 or later. Signed with a Developer ID, notarized by Apple, no telemetry.

Leaner’s overview: disk usage, recoverable space and updates

Install

With Homebrew, which also handles updates:

brew install --cask leaner-app/tap/leaner

Or from the terminal, without Homebrew:

curl -fsSL https://raw.githubusercontent.com/leaner-app/releases/main/install.sh | zsh

Why it exists

Mac cleaners go after browser caches and language files. On a development machine that is pocket change: the weight is in dependency repositories, downloaded distributions, build indexes and simulators. This is the actual breakdown on the machine where Leaner is built, the first time it was run:

Chromium and Electron app caches (Chrome, VS Code, Slack, Spotify…)11.5 GB
Local Maven repository7.1 GB
Gradle distributions and JDKs5.2 GB
Command-line tool caches (~/.cache)2.2 GB
npm, yarn, pnpm, pip, Homebrew, Cargo, Go caches…1.2 GB
Gradle daemon logs1.2 GB
System caches, Trash, downloads, data from uninstalled apps…~1 GB
Total proposed29 GB

After that first cleanup the same machine still proposes around 16 GB: caches come back and dependency repositories grow again. It is meant to be run periodically, not once.

List of cleanup categories with their size and risk level

What it cleans

Anything Safe is preselected; Review items are only removed if you check them yourself.

App caches and logs, Trash, saved window stateSafe
Chromium and Electron app cachesSafe
Package manager caches and Gradle daemon logsSafe
Xcode DerivedData and simulators with no runtimeSafe
Maven repository, Gradle distributions and JDKsReview
Terminal caches, old temporary files, PlaywrightReview
Xcode device support and archivesReview
Apps installed in shut-down simulatorsReview
Mail downloads, installers and old downloadsReview
iPhone and iPad backups, data from uninstalled appsReview

It also uninstalls unused apps along with their leftover data, and finds your largest files.

Why you can trust it

An app that deletes files and asks for Full Disk Access has to earn that permission.