The best Mac disk cleaners for developers in 2026

Ten tools, grouped by the job they do, with prices, how each one deletes, and which to pick for the space you actually need back.

8 min read · Updated October 9, 2026

At a glance

ToolPriceBest for
GrandPerspectiveFree; $2.99 on the App StoreA free, open source map of what takes space
DaisyDisk$9.99 onceA polished disk map, including hidden space
DevCleaner for XcodeFree, optional tipsXcode's Device Support, Archives and DerivedData
npkillFree, open sourcenode_modules from a terminal, on any OS
kondoFree, open sourceBuild folders of 24 project types, on any OS
MoleFree CLI; Mole for Mac $19 onceA broad command-line Mac cleaner with build folder purge
BroomkitFrom $34.95 onceDeveloper caches and build folders in a Mac app
DevbroomFree; Pro $29 onceWhat coding agents leave: sessions, worktrees, build folders
CleanMyMacFrom $39.95 a yearThe whole Mac, plus a beta CLI for developer caches
OnyXFreemacOS maintenance tasks, not developer folders

There's no single best cleaner for developers, because developers lose space in very different places. An iOS developer's disk fills with simulators and DerivedData. A web developer's fills with node_modules. Someone who runs coding agents all day collects sessions, scratch folders and worktrees. So this list is grouped by the job each tool does, and the table above isn't a ranking. We make Devbroom, one of the tools on it; we've tried to describe every tool, ours included, by what its own site and repository say.

Run the command above first. It only reads, and the biggest line tells you which group to start with.

Disk maps: see before you delete

GrandPerspective is free and open source under the GPL, or $2.99 on the App Store for the same app. It draws every file as a block sized by its space. Version 3.8.1 came out in September 2026 and needs macOS 14.

DaisyDisk is $9.99 once, with a lifetime license for up to five personal Macs. Its sunburst map is quicker to read, and it shows purgeable space, snapshots and other hidden space. Deleting is permanent, with five seconds to change your mind.

OmniDiskSweeper from The Omni Group is free and still maintained; it lists folders by size and sweeps what you pick into the Trash.

Pick a disk map when you don't know where the space went. None of them knows what a folder is for: a cache and your only copy of a project look the same.

Xcode: DevCleaner

DevCleaner for Xcode is free on the Mac App Store, with optional tips, and open source under the GPL. It cleans Device Support, Archives, DerivedData, the documentation cache and old logs, and by default selects every Device Support folder except the newest for each system. It has a command-line tool and a dry run. It deletes permanently and needs macOS 14. If your biggest lines are Xcode's, start here.

Build folders from the terminal: npkill and kondo

npkill finds node_modules by name, shows each one's size and last change, warns about folders inside apps, and deletes what you pick with rm -rf. Run it with npx npkill, nothing to install. Its latest release is 0.12.2 from June 2024.

kondo covers 24 project types, from Cargo and Gradle to Unity and Unreal, and --older 3M limits it to projects untouched for three months. Its README calls it "rm -rf with a prompt". Both are free, MIT licensed and run on macOS, Linux and Windows.

More on both in npkill alternatives.

Developer cleaners: Mole, Broomkit and Devbroom

Mole is a free, open source command-line cleaner with a very active repository. mo clean covers caches including developer ones, and mo purge finds build folders like node_modules, target and dist, leaving recent ones unselected and protecting folders with git-tracked files. Most cleanup is permanent; mo analyze deletes to the Trash. A separate native app, Mole for Mac, costs $19 once for two Macs.

Broomkit is a paid Mac app for developer caches and build folders: node_modules, pnpm, pip, DerivedData, simulators and Docker. No account, one payment that doesn't renew, from $34.95 for one Mac.

Devbroom is ours. It's for Macs where coding agents work: it knows where Claude Code, Codex, Cursor, OpenCode and Orca keep their data and what each one cleans itself, finds git worktrees and build folders, and gives every item a verdict with its reasons. Anything a session, process or open file still uses is Blocked, and a worktree with uncommitted changes is never removed. Cleaning moves items to the Trash, with Put back from History. Scanning, cleaning and undo are free; Pro is $29 once. The rules are on Rules, the agents it knows are listed, and your agents can ask it before deleting through MCP.

General cleaners: CleanMyMac and OnyX

CleanMyMac cleans the whole Mac and adds malware scanning, an uninstaller and app updates. It starts at $39.95 a year; a one-time license from $119.95 covers the current major version. Since July 2026 MacPaw also has CleanMyMac CLI in public beta, with clean dev for developer caches, purge for build folders and clean ai for AI tool junk. Our side-by-side is Devbroom vs CleanMyMac.

OnyX is free and runs macOS's own maintenance tasks and cleanups. It isn't made for developer folders; its newest version needs Apple silicon.

How to pick

  • You don't know where the space went: a disk map. GrandPerspective if free matters, DaisyDisk if you'll use it often.
  • Most of it is Xcode: DevCleaner. It goes deeper into Xcode than any tool here.
  • Old node_modules and target folders, maybe on Linux too: npkill or kondo.
  • You want one free terminal tool for the whole Mac: Mole.
  • Coding agents work on this Mac: a tool that checks running sessions and worktrees before anything moves. That's why we built Devbroom; see Verdicts for what it checks.
  • You also want malware scanning and an uninstaller: CleanMyMac.

Many developers combine two: a disk map to look, and one specialist for the space that keeps coming back.

Prices and facts checked on October 9, 2026. Every tool named here is a trademark of its owner; Devbroom isn't affiliated with any of them.

More alternatives