# Free disk space on your Mac with Cleaner

> Free disk space on your Mac with Edith's Cleaner: scan caches and build output, review what goes, move it to the Trash, restore it, and clean old worktrees.

- Canonical URL: https://getedith.pro/docs/tutorials/free-disk-space
- Updated: 2026-12-03

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](https://getedith.pro/guides/free-disk-space-mac-developers) and [Clean up a full Mac disk](https://getedith.pro/use-cases/clean-up-a-full-mac-disk).

## Install Cleaner

1. Open **Library** in the sidebar.
2. Find **Cleaner** under **Mac Utilities**, or type its name in **Search tools**.
3. 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.

> **Note:** Disk Map can measure folders macOS protects only with Full Disk Access. Grant it in **Settings > Permissions** if you want those folders measured. Cleanup works without it.

## 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.

![Cleaner's Cleanup tab showing 1.11 GB found for review in 7 categories on Macintosh HD, with checked categories such as Xcode DerivedData, Simulator caches, Swift Package cache and npm cache, and a Move to Trash button for the 1.11 GB selected](shot:ext-cleaner)

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**.

> **Warning:** Moving files to the Trash does not free the space yet. Empty the Trash in Finder once you are sure. **Delete permanently** next to the button erases items instead of moving them to the Trash. Deleted items cannot be restored.

## 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.

1. Press **Choose folder** and pick a folder, such as Downloads.
2. Start from a preset, such as **Large files, 100 MB or more**, **Files older than 90 days**, **Installers and disk images** or **Exact duplicates**.
3. Press **Scan folder**.
4. Tick what should go, or press **Keep one per duplicate group**.
5. 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](https://getedith.pro/docs/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`:

```terminal
$ ed cleaner scan --root ~/code --category nodeModules --older-than 2w
$ ed cleaner clean --category npm
$ ed cleaner clean --category npm --yes
$ ed cleaner worktrees --root ~/code
$ ed cleaner review ~/Downloads --minimum-mb 10 --older-than-days 30
$ ed cleaner protect ~/code/keep-this
$ ed cleaner restore <receipt-id> --yes
$ ed cleaner machines scan
```

See the [`ed cleaner` reference](https://getedith.pro/docs/cli/cleaner) for every flag, including `--include-dirty` for worktrees with uncommitted changes.

## Next steps

- [Cleaner](https://getedith.pro/docs/extensions/cleaner) for every category and option.
- [Manage a server from your Mac](https://getedith.pro/docs/tutorials/manage-a-server-from-your-mac) to add the machines Cleaner can reach.
- [Permissions](https://getedith.pro/docs/permissions) for Full Disk Access.

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
