# ed cleaner machines

> Scan and clean the computers saved in Machines the same way Cleaner scans this Mac: caches, project build output and dependencies, and git worktrees in each…

- Canonical URL: https://getedith.pro/docs/cli/cleaner/machines
- Updated: 2026-12-02

Scan and clean the computers saved in Machines the same way Cleaner scans this Mac: caches, project build output and dependencies, and git worktrees in each machine's home folder. Cleaner runs small POSIX `sh` scripts on each machine over SSH, so nothing is installed there. The Machines extension must be on. macOS and Linux machines are supported. In the app, the same machines appear under Machines in **Choose where to search**, and their results join the normal Cleanup list.

```sh
ed cleaner machines
ed cleaner machines scan
ed cleaner machines scan build-box --category nodeModules --json
ed cleaner machines clean
ed cleaner machines clean build-box --yes
ed cleaner machines clean --path /home/dev/.cache/pip/http-v2 --permanently --yes
```

| Command | Effect |
| --- | --- |
| `ls` | List the saved machines Cleaner can reach. The default. |
| `scan [machine...]` | Measure every category on each machine, in parallel. Read only. |
| `clean [machine...]` | Scan, then preview or apply the default selection on each machine. |

Machine names match the name, SSH alias, identifier or a unique prefix. With no names, every saved machine is used.

| Option | Effect |
| --- | --- |
| `--category <id>` | Limit to one category listed by `categories`, including project rules and `worktrees`. |
| `--path <path>` | Clean only these exact discovered remote paths. |
| `--include-review-required` | Also include categories that start unchecked, such as project output and worktrees. |
| `--permanently` | Delete instead of moving to the machine's Trash. Still needs `--yes`. |
| `--yes` | Apply. Omit for a read-only preview. |
| `--json` | Emit per-machine categories, planned bytes, moved bytes and failures. |

The project rules, git ignore checks, walk depth and skipped folders are the ones Cleaner uses on this Mac. Linux machines use the XDG locations of each cache rule (for example `~/.cache/pip`), and `~/Library` rules only apply on macOS. Worktrees with uncommitted changes, unpushed commits or a lock are never cleaned. Each item is checked against the file identity recorded by the scan before it is removed, and symbolic links are left alone. Trash moves go to `~/.Trash` on macOS and to the freedesktop Trash (`~/.local/share/Trash`, with a `.trashinfo` file) on Linux, so file managers and `trash-cli` can restore them. Moving to Trash does not free space until that Trash is emptied.

[Cleaner](https://getedith.pro/docs/cli/cleaner) · [All commands](https://getedith.pro/docs/cli).

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