# ed color clear

> ed color clear in the Edith ed command line reference. Forgets the whole picked-colour history.

- Canonical URL: https://getedith.pro/docs/cli/color/clear
- Updated: 2026-12-02

Forgets the whole picked-colour history.

Usage:

```
ed color clear [--json] [--yes]
```

Options:

| Name | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `--json` | flag | off | Emits one JSON document on stdout. |
| `--yes` | flag | off | Applies the clear. Without it, prints the swatch ids. |

There are no positional arguments. Without `--yes`, `clear` is a preview that
leaves the defaults bytes unchanged.

`--json` shape:

```json
{
  "removed": 3
}
```

`removed` is how many swatches were in the history before it was emptied.

Examples:

```
ed color clear
ed color clear --yes --json
```

```
$ ed color clear --yes
cleared 3 colours
```

Behaviour: this removes the `colorPickerHistory` key from Edith's settings. A
running Edith does not reload the swatch history at once, so it can still show the colours you cleared: the Recent Colors grid reloads the next time
the settings pane appears, and the eyedropper's menu only once the picker is
restarted or another colour is sampled. The post is fire and forget, so the
command needs nothing running and exits 0 either way. Clearing an already empty
history is reported as `cleared 0 colours` rather than as an error. There is no
per-swatch removal; the history is cleared whole or not at all.

The settings pane has no button for this. Its Recent Colors grid and
`ed color copy` use the same shared copy operation, but neither can forget one,
so `ed color clear` is the only way to empty the history from any surface.

## Where to go next

- [`ed color`](https://getedith.pro/docs/cli/color), the rest of this group
- [All `ed` 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
