Tutorial· About 15 minutes
Free disk space on your Mac with Cleaner
When you finish, you will have reclaimed space from caches, build output, old git worktrees and large forgotten files, without deleting anything you did not choose, and you will know how to put something back. You need Edith installed. For background on where the space goes on a developer's Mac, read Free disk space on a Mac for developers and Clean up a full Mac disk.
Install Cleaner
- Open Library in the sidebar.
- Find Cleaner under Mac Utilities, or type its name in Search tools.
- Press Install, then open Cleaner from the sidebar.
The page has four tabs: Cleanup, Disk Map, Files and Restore. From the terminal, ed extensions install cleaner does the same.
Choose where to search
The Cleanup tab lists the drives, folders and machines it searches next to Searched. Press Change… to pick other volumes, or press Add folder… in that window to search a folder of your own.
Scan your Mac
A scan only reads folders. It never changes anything. The first time you open Cleanup, press Scan my Mac. After that, press Scan again at the top of the Cleanup tab. A scan usually takes about a minute, and Cancel scan stops it.
To narrow the results, open the filter bar under the summary and press Change. You can skip anything touched recently with Untouched for, hide small items with At least, and choose how results are sorted.
Review what it found
The Cleanup tab shows the total under Found for review, then one row per category, such as Xcode DerivedData, Simulator caches, Swift Package cache and npm cache. Open a category to see every item, and untick anything you want to keep.

Some categories start unchecked because they need a closer look: archives, backups, project output and worktrees. Tick them only after you have looked inside. Right-click an item for Reveal in Finder or Copy path.
Move it to the Trash
Press Move to Trash at the bottom of the Cleanup tab and confirm. To clean a single category, press Clean on its row instead.
Each item is checked again right before it moves, so something that changed since the scan is left alone. If an item cannot move, Cleaner groups it by cause and offers Retry.
Clean old worktrees
Git worktrees pile up fast when agents work on several branches. The Cleanup tab finds them in the drives and folders it searches and shows them with their size and age.
In the Developer profile, the filter bar's Keep toggles leave worktrees out of the results: Worktrees with uncommitted changes, Worktrees with unpushed commits and Locked worktrees. Moving a worktree to the Trash prunes it from its repository. Its branch stays.
Find large and duplicate files
The Files tab looks for large, old and duplicate files and installers in a folder you pick. No file starts selected.
- Press Choose folder and pick a folder, such as Downloads.
- Start from a preset, such as Large files, 100 MB or more, Files older than 90 days, Installers and disk images or Exact duplicates.
- Press Scan folder.
- Tick what should go, or press Keep one per duplicate group.
- Press Review and move to Trash.
Duplicates are matched by their full content, so two files with the same name but different contents are never grouped. Disk Map shows where space goes as a treemap or rings. Press Choose folder… there and click a folder to look inside it.
Protect what must stay
Open the Restore tab and press Protect a folder. Cleaner never touches a protected folder or anything inside it, across every scan. In the Files tab, open a file's Actions menu and choose Protect this file. Unprotect on the Restore tab removes a protection.
Restore something you need back
The Restore tab lists what Cleaner moved to the Trash. Filter it by the original path, then press Restore on the item.
A restore puts the item back where it was. It refuses if the original folder is gone, the item in the Trash changed, or something already sits at that path. Once you empty the Trash, the item cannot be restored.
Clean your machines too
If you use Machines, Cleaner can scan and clean them the same way over SSH. Nothing is installed on them. Press Change… next to Searched and select the machines. Each selected machine gets the same scan of its home folder. On Linux, items move to the freedesktop Trash, so they can be restored there.
From the terminal
Every step above has an ed cleaner command. Commands that move files only preview until you add --yes:
ed cleaner scan --root ~/code --category nodeModules --older-than 2wed cleaner clean --category npmed cleaner clean --category npm --yesed cleaner worktrees --root ~/codeed cleaner review ~/Downloads --minimum-mb 10 --older-than-days 30ed cleaner protect ~/code/keep-thised cleaner restore <receipt-id> --yesed cleaner machines scanSee the ed cleaner reference for every flag, including --include-dirty for worktrees with uncommitted changes.
Next steps
- Cleaner for every category and option.
- Manage a server from your Mac to add the machines Cleaner can reach.
- Permissions for Full Disk Access.
