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

# Delete Workflow

> Permanently delete a workflow and all its run history.

## Authentication

Requires a JWT token or API key in the `Authorization` header.

```bash theme={"dark"}
Authorization: Bearer YOUR_TOKEN
```

## Request

<ParamField path="id" type="string" required>
  The workflow ID to delete.
</ParamField>

### Example request

```bash theme={"dark"}
curl -X DELETE "https://encrata.com/api/workflows/wf_abc123" \
  -H "Authorization: Bearer YOUR_TOKEN"
```

## Response

```json theme={"dark"}
{
  "success": true,
  "message": "Workflow deleted"
}
```
