# ed clipboard clear

> ed clipboard clear in the Edith ed command line reference. Forgets the whole history.

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

Forgets the whole history.

```
ed clipboard clear [--keep-pinned] [--json] [--yes]
```

| Name | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `--keep-pinned` | flag | off | Keep pinned entries. |
| `--json` | flag | off | Emit JSON on stdout. |
| `--yes` | flag | off | Apply the clear. Without it, print the exact entry ids. |

```json
{
  "applied": false,
  "changed": false,
  "remaining": 3,
  "removed": 1214,
  "targets": ["entry-id-1", "entry-id-2"]
}
```

`removed` is a count here, and `remaining` is what survived, which is 0 without
`--keep-pinned` and the number of pinned entries with it.

Without `--yes`, the command reports the exact entry ids and changes neither
the index nor its blobs. A confirmed clear deletes only those ids. Orphaned
blobs are pruned with it, so the disk space comes back at once.

Examples:

```
ed clipboard clear
ed clipboard clear --keep-pinned --yes
ed clipboard clear --json
```

```
$ ed clipboard clear --keep-pinned --yes
cleared 1214 entries
```

## Where to go next

- [`ed clipboard`](https://getedith.pro/docs/cli/clipboard), 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
