# AnnotationsApi.delete()

```ts
delete(id: string, options?: SignedDocumentOptions): Promise<void>
```

Removes the annotation with that id, with its pop-up (listed as `other`) and every reply and review status that answers it, which may sit anywhere on the page; their ids are gone with them. Needs the `annotations` feature, and `forms` too for a form field's widget.

- Kind: method
- Since: 1.0.0

| Parameter | Type | Description |
| --- | --- | --- |
| `id` | `string` | The annotation's id. |
| `options?` | `SignedDocumentOptions` | `{ invalidateSignatures? }`. |

Returns `Promise<void>`

Throws:

- `INVALID_ARGUMENT` — an id no annotation has.
- `PAGE_ERROR` — the annotation could not be removed.
- `FEATURE_NOT_LICENSED` — the license lacks `annotations` (or `forms`, for a form field's widget).
- `DOCUMENT_CLOSED` — the document has been closed.
- `INVALID_STATE` — a certified document whose certification forbids it, unless `options.invalidateSignatures`; or a progressive document still downloading.

```ts
await doc.annotations.delete(id);
```

Part of [AnnotationsApi](https://kernstra.com/docs/web-sdk/api/doc-annotations) in the Kernstra Web SDK 1.0.0 API reference.

Web page: https://kernstra.com/docs/web-sdk/api/doc-annotations/delete
