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

# Annotation - Delete

> Delete an annotation.

This endpoint deletes an annotation. It supports:

* Deleting annotations by ID
* Verifying annotation ownership before deletion
* Returning a success confirmation

<Note>
  Authentication is **required**. You must provide a valid session with an organization ID, and the annotation must belong to your organization.
</Note>

### Path

<ParamField path="id" type="string" required>
  The ID of the annotation to delete (CUID format).
</ParamField>

### Response

<ResponseField name="success" type="boolean">
  Indicates whether the deletion was successful. Always `true` on successful deletion.
</ResponseField>

### Error Responses

| Status Code | Type         | Description                                                                                    |
| ----------- | ------------ | ---------------------------------------------------------------------------------------------- |
| 401         | UNAUTHORIZED | Missing or invalid authentication session, or annotation does not belong to your organization. |
| 404         | NOT\_FOUND   | Annotation with the specified ID does not exist.                                               |

<RequestExample>
  ```bash cURL theme={null}
  curl --location --request DELETE 'https://dashboard.laburen.com/api/annotations/clxxxxxxxxxxxxxxxxx' \
  --header 'Authorization: Bearer <API_KEY>'
  ```

  ```javascript JavaScript theme={null}
  const apiUrl = 'https://dashboard.laburen.com/api';
  const apiKey = '<API_KEY>';

  const response = await fetch(`${apiUrl}/annotations/clxxxxxxxxxxxxxxxxx`, {
    method: 'DELETE',
    headers: {
      'Authorization': `Bearer ${apiKey}`,
    },
  });

  const data = await response.json();
  console.log(data);
  ```

  ```python Python theme={null}
  import requests

  api_url = "https://dashboard.laburen.com/api"
  api_key = "<API_KEY>"

  response = requests.delete(
      f"{api_url}/annotations/clxxxxxxxxxxxxxxxxx",
      headers={
          "Authorization": f"Bearer {api_key}",
      },
  )

  data = response.json()
  print(data)
  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "success": true
  }
  ```
</ResponseExample>
