> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Delete annotation

> Deletes one annotation and returns `null`.

`axiom.deleteAnnotation` deletes one annotation and returns `null`. Dataset events and dashboard configuration are unchanged.

```ts automations/axiom-delete-annotation.automation.ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { axiom } from "automate.ax/axiom"

export default automation("Delete annotation", () => {
  onHttpRequest({ scope: "automation" })
  axiom.deleteAnnotation({ annotationId: "annotation-id" })
})
```

<Warning>
  This operation changes or deletes provider data. Confirm the target before
  deployment.
</Warning>

## Input

`annotationId` is required and selects the annotation to delete.

## Output

Returns `null` after Axiom confirms deletion.

## Permission and failures

The API token needs the organization-level `annotations|delete` capability. Axiom returns an error when the annotation does not exist or the token cannot delete it. This mutation is not retried automatically after an ambiguous provider response.
