# Delete Workflow Tool

Deletes an entire workflow: its graph, its saved versions, and its schedule.

## When to Use

Use this when a whole workflow should stop existing. It is not the tool for editing one — removing
a step is `delete_workflow_node`, and removing a connection is `delete_workflow_edge`. Both of those
leave a workflow behind; this does not.

There is no trash for workflows. What it deletes does not come back, including every version in the
version history.

Confirm with the user before calling it, and name the workflow you are about to
delete rather than its id.

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `workflow_id` | string | Yes | Workflow slug or ULID |

## Returns

| Field | Type | Description |
|-------|------|-------------|
| `success` | boolean | Whether the deletion succeeded |
| `operation` | string | Always `deleted` |
| `workflow_id` | string | The workflow that was deleted |
| `name` | string | The workflow's name, read before it was deleted |

## Notes

- A running execution is not cancelled by this. The workflow stops being scheduled and stops being
  installable; work already in flight finishes.
- The workflow's slug is released, so a later workflow can take the same name.
