delete_flow
Delete a flow by providing its ID, expected version, and a confirm flag. The flow is soft-deleted and recoverable via restore_flow.
Instructions
Delete a flow. Destructive, but RECOVERABLE — it is soft-deleted and can be brought back with restore_flow (it will not appear in list_flows until then). Read it first for its version. A 409 here may be a stale version (re-read and retry) or a reference conflict (something published still uses it — re-reading will not help; the error tells you which).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The flow's id. | |
| confirm | Yes | Must be true. Acknowledges you understand this is destructive. | |
| expectedVersion | Yes | The version you last read — rejected with 409 if stale. |