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

# flows.workflow.deleted

> Fired when a workflow is permanently deleted from Chamelio Flows, so integrations can remove references, disable automations, and clean up dependent resources.

## Event

```
flows.workflow.deleted
```

This event fires when a workflow definition is deleted from the Chamelio web application.

## Payload Example

```json theme={null}
{
  "event": "flows.workflow.deleted",
  "event_id": "3f7c1a8e-5b2d-4e9a-9c31-8a6f0d4b7e12",
  "organization_id": 42,
  "user_id": null,
  "payload_version": 1,
  "timestamp": "2026-09-02T14:32:00Z",
  "data": {
    "workflow_id": "wf_contract_review",
    "workflow_name": "Contract Review"
  }
}
```

## Payload Fields

### Envelope

| Field | Type | Description |
| - | - | - |
| `event` | string | Always `flows.workflow.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 | Always `null` for this 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 |
| - | - | - |
| `workflow_id` | string | ID of the deleted workflow |
| `workflow_name` | string | Human-readable name of the deleted workflow |

> [!NOTE]
>
> This event carries no `user_id` - the deleting user is not recorded on the envelope, so the field is
> always `null`.
