Skip to content

Delete a workspace workflow ​

DELETE/api/v2/workspaces/{slug}/workflows/{pk}/

Delete a catalog workflow. A successful delete returns 204 with an empty body.

Deleting needs the Multiple workflows plan feature. Without it, the request returns 402 payment_required.

The request returns 409 workflow_in_use while anything still depends on the workflow:

  • It is the workspace default workflow (is_default: true). You can't delete the default.
  • A project's pick points at it.
  • The workspace pinned it for a project and work item type.
  • A work item type lists it in its allowlist, or mandates it.

Get workspace workflow usage lists the picks and allowlist entries that reference the workflow. Move project picks with work item type workflows, and remove pins and allowlist entries with work item type governance.

Path Parameters ​

slug:requiredstring

The workspace slug. It appears in your Plane URLs. In https://app.plane.so/my-team/projects/, the slug is my-team.

pk:requiredstring (uuid)

The id of the catalog workflow. A project workflow's id returns 404.

Scopes ​

workspaces.workflows:write

Errors ​

StatusCodeCause
400invalid_requestThe request body or a query parameter failed validation.
401unauthorizedMissing or invalid credentials.
402payment_requiredMultiple workflows isn't on your plan, or is switched off.
403forbiddenYour role or token scope can't delete workspace workflows.
404not_foundNo such workflow in this workspace's catalog, or it's outside your tenant.
406not_acceptableThe Accept header asks for a representation the API can't produce.
409governance_migration_in_progressA governance migration is running in this workspace, so writes are paused. Retry after it finishes.
409states_managed_at_projectThe workspace doesn't have governance turned on. Use the project's workflows instead.
409workflow_in_useThe workflow is the workspace default, or a project pick, a pin, or a type allowlist references it.
413payload_too_largeThe request body is over the size limit.
415unsupported_media_typeThe Content-Type isn't one this endpoint accepts.
429rate_limitedThrottled. Honor the Retry-After header before retrying.
Delete a workspace workflow
bash
curl -X DELETE \
  "https://api.plane.so/api/v2/workspaces/my-team/workflows/9c1f0b3d-6d2e-4c9a-8b41-2f7e5a0d6c88/" \
  -H "X-Api-Key: $PLANE_API_KEY"
Response204

No response body.

Response409
json
{
  "type": "conflict",
  "code": "workflow_in_use",
  "detail": "This workflow is in use by a project pick, pin, or type allowlist."
}
Response409
json
{
  "type": "conflict",
  "code": "workflow_in_use",
  "detail": "The workspace default workflow cannot be deleted."
}