# ed clipboard rm

> ed clipboard rm in the Edith ed command line reference. Forgets one entry and deletes the blob behind it.

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

Forgets one entry and deletes the blob behind it.

```
ed clipboard rm <index> [--json] [--yes]
```

| Name | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `<index>` | integer, from 1 | required | The entry number, counting from 1. |
| `--json` | flag | off | Emit JSON on stdout. |
| `--yes` | flag | off | Apply the removal. Without it, preview the exact entry. |

```json
{
  "action": "remove clipboard entry",
  "applied": true,
  "changed": true,
  "id": "c8ca5dfe8a9a4d24",
  "index": 3,
  "preview": "copied text",
  "remaining": 1216,
  "removed": 3,
  "targets": ["c8ca5dfe8a9a4d24"]
}
```

`removed` here is the index that was removed, not a count, which is the opposite
of what the same key means under `clear`. `remaining` is how many entries the
history holds afterwards.

Without `--yes`, the command reports the exact entry id, index, and preview
without changing the index or blob. Removal prunes orphaned blobs, so the file
under `blobs/` goes with the entry unless another entry references the same
content. This is not a Trash move and there is no undo after confirmation.

Examples:

```
ed clipboard rm 3
ed clipboard rm 1 --yes --json
```

```
$ ed clipboard rm 3 --yes
removed entry 3, 1216 left
```

Numbers shift after a removal, so removing several entries by number means
re-reading `ls` between each one, or reading `id` out of `--json` first and
working from that.

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