Delete a flow
DELETE/v1/flows/:flow_id
Deletes the flow, every version, every submission collected through it and their stored files, in the background: 202 now, and the flow answers 404 once the job has run, usually within seconds; until then it reads unchanged. There is no undo. A published flow must be unpublished first (409 must_unpublish_first). Requires the flows:write scope, which is therefore a destructive scope: keep keys that hold it as carefully as the data.
Request
Responses
- 202
- 400
- 401
- 403
- 404
- 409
- 429
Accepted: the deletion is running. No response body. The flow reads unchanged until the job has run, then answers 404.
A malformed flow_id (code: invalid_parameter), or an unrecognised query parameter (code: unknown_parameter).
Missing, malformed, unknown, revoked, or expired key — one body for all of them (code: unauthorized), with WWW-Authenticate: Bearer realm="hop".
The key lacks the scope (code: insufficient_scope), named in WWW-Authenticate: Bearer error="insufficient_scope", scope="…".
No such flow — nonexistent, already deleted, or another organisation's.
code: must_unpublish_first — the flow has a published version. Unpublish it, then delete.
Over a bucket. Obey Retry-After (seconds); RateLimit-* fields are informational.
Response Headers
Requests allowed in the current window. Informational.
Requests left in the current window. Informational.
Seconds until the window resets. Informational.
Seconds to wait before retrying. The binding contract.