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

# core.document.deleted

> Fired when a document is permanently deleted from Chamelio Knowledge Center, so integrations can remove references, update indexes, or log the event.

## Event

```
core.document.deleted
```

This event fires when a document is removed from Knowledge Center. The document is already gone by the time the webhook is delivered, so the payload carries the identifying details you need for your own bookkeeping.

## Payload Example

```json theme={null}
{
  "event": "core.document.deleted",
  "event_id": "3f7c1a8e-5b2d-4e9a-9c31-8a6f0d4b7e12",
  "organization_id": 42,
  "user_id": 1337,
  "payload_version": 1,
  "timestamp": "2026-09-02T14:32:00Z",
  "data": {
    "document_id": 88213,
    "document_title": "Master Services Agreement - Acme Corp",
    "file_name": "vendor_agreement_q3.pdf",
    "actor": {
      "user_id": 1337,
      "email": "john.doe@example.com",
      "name": "John Doe"
    }
  }
}
```

## Payload Fields

### Envelope

| Field | Type | Description |
| - | - | - |
| `event` | string | Always `core.document.deleted` |
| `event_id` | string | UUID for this delivery. Use it to deduplicate retries |
| `organization_id` | integer | ID of the organization the event occurred in |
| `user_id` | integer or null | ID of the user who triggered the event |
| `payload_version` | integer | Envelope schema version. Currently `1` |
| `timestamp` | string | ISO 8601 UTC timestamp of when the event was generated |
| `data` | object | Event-specific payload (see below) |

### Data Object

| Field | Type | Description |
| - | - | - |
| `document_id` | integer | ID of the deleted document |
| `document_title` | string or null | Title the document had, when one was recorded |
| `file_name` | string or null | File name the document had, when one was recorded |
| `actor` | object | The user who deleted the document (see below) |

### Actor Object

Chamelio resolves the acting user at send time. `user_id` is present whenever a user triggered the
event; `email` and `name` are filled in only if that user could still be resolved in the
organization.

| Field | Type | Description |
| - | - | - |
| `user_id` | integer or null | ID of the user who triggered the event |
| `email` | string or null | Email of that user |
| `name` | string or null | Full name of that user |

> [!WARNING]
>
> The document no longer exists when this fires. Calls to [Get Contract Data](https://docs.chamelio.ai/api-reference/endpoint/core/get-contract-data.md)
> for this `document_id` will return `404`.
