Skip to main content
DELETE
Deactivate, or permanently delete, a workflow

Authorizations

hookie_session
string
cookie
required

The console's sealed session cookie, set by WorkOS AuthKit. Mutating requests also require the X-Requested-With CSRF header.

Path Parameters

project_id
string
required
workflow_id
string
required

Query Parameters

permanent
boolean
default:false

true deletes the workflow and its run history for good. Omitted or false, the workflow is only deactivated (active set to 0), and PATCH active:true brings it back. Any other value is refused with 400.

Response

Deactivated ({"ok": true}), or with ?permanent=true deleted along with its runs and their step log (done: true, and what went in deleted).

ok
enum<boolean>
required
Available options:
true
done
enum<boolean>

Permanent delete only: the workflow itself is gone.

Available options:
true
deleted
object

Permanent delete only: what this call deleted.