Skip to content
← All guides

Developer junk

Developer Mode: Preview Deletions as a Git Diff

The MacZentra team · Updated Oct 1, 2026 · 3 min read

Developers already have a mental model for reviewing changes before they commit: the diff. Developer Mode brings that to disk cleanup. Before a destructive operation runs, it shows a Git-style unified-diff preview of exactly what will be deleted and what will be kept, with a summary of how many files change and how much space you'll reclaim. You read it like a patch, then decide.

What the diff shows

The preview reads like git diff. Paths marked for deletion appear on red - gutter lines; paths that will be preserved appear as gray context. At the bottom is a commit-style delta summary, for example:

Deletion preview
node_modules/.cache/webpack
- Library/Developer/Xcode/DerivedData/MyApp-abc123
- Library/Caches/com.docker.docker/Docker.raw
Projects/active-app/node_modules
12 files changed, -8.4 GB space reclaimed

This is especially valuable in Developer Junk, where a single line like Docker.raw can represent gigabytes and you want certainty about what's going before it goes.

Review, export, then execute

The diff modal has two actions beyond closing it:

  • Export Diff downloads the preview as a .patch file, so you can keep an audit trail of what a cleanup removed, attach it to a ticket, or diff it later.
  • Execute Deletion runs the operation. Nothing is removed until you click it, and as everywhere in the app, items go to the macOS Trash rather than being erased.

Turning it on

Developer Mode is a Pro feature, toggled from the toolbar. With it on, destructive operations surface the diff modal first instead of deleting straight away. Turn it off and the app behaves normally.

The same preview from the terminal

If you prefer the command line, the msc CLI prints the identical unified diff to stdout, so you can pipe it into your own tooling:

Terminal
msc diff --dry-run > cleanup-preview.patch
MacZentra Developer Mode settings screen
Developer Mode previews exactly which paths will be reclaimed before anything runs.

Who is this for?

Anyone who wants to audit a cleanup before it runs, but it's built with developers in mind, people comfortable reading a patch who are about to delete multi-gigabyte build artifacts. Pair it with Protected Folders to keep active projects out of scans entirely, and the two together make large cleanups predictable.

Everything MacZentra can clean

Treemap and Sunburst disk maps, a duplicate finder, Developer Junk, a complete app uninstaller and more, in one native storage cleaner for Mac that’s 15.4 MB.

Explore all features →