# ed cleaner protect

> List persistent protections or add a path that every Cleaner scanner and removal route must respect.

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

List persistent protections or add a path that every Cleaner scanner and removal route must respect.

```sh
ed cleaner protect ~/Documents/Keep
ed cleaner protect --json
ed cleaner protect ~/Documents/Keep --remove
```

Protecting a folder excludes its descendants. Protecting any child also prevents removal of a containing folder. Paths resolve relative to the caller's working directory, with tilde expansion. Removing a protection allows future review; it never deletes anything.

The Restore tab exposes the same protected-path list.

[Back to 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
