> See exactly what will be deleted before you commit, as a live unified diff. Ideal for auditing risky deletions like Docker.raw or Xcode archives.

[← All guides](https://maczentra.com/blog)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](https://maczentra.com/blog/shrink-docker-mac-disk), 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](https://maczentra.com/blog/cli-commands-reference) 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](https://maczentra.com/guides/devmode.webp)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](https://maczentra.com/blog/protected-files-feature) 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 →](https://maczentra.com/features)

## Related guides

[Developer junk · 6 minDelete Every node_modules Folder on Your MacList every node_modules folder by size in one command, delete the stale ones, and clear npm, Yarn, pnpm and Bun caches.](https://maczentra.com/blog/node-modules-cleanup)[Developer junk · 5 minShrink Docker.raw on Mac: Reclaim Disk Space SafelyWhy Docker.raw grows to tens of gigabytes and how to shrink it: prune images, volumes and build cache, resize the disk, and when to delete it.](https://maczentra.com/blog/shrink-docker-mac-disk)[Developer junk · 5 minXcode DerivedData: What's Safe to DeleteDerivedData is always safe to delete. Three ways to clear it, plus device support, archives and simulators that fill your Mac.](https://maczentra.com/blog/clean-xcode-derived-data)[Check storage · 9 minBest Mac Storage Cleaners 2026: Compared & RankedMac storage cleaners and disk space analyzers compared by price, size, scan speed and licence. One-time, subscription and free options side by side.](https://maczentra.com/blog/best-mac-storage-cleaners)

Source: https://maczentra.com/blog/developer-mode-feature
