Deletes a workflow.
If the workflow is linked to projects or project templates they can either be unlinked
or migrated to another workflow before the workflow is deleted.
<Check title="Required Permissions" icon="key">The user must be an admin or have `project-manage-config:write` permissions.</Check>
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
workflowId
Request
This endpoint expects an object.
deleteOperation
Defines how linked projects and project templates should be handled before deletion.
Supported values are 'unlink' and 'migrate'.
newWorkflowId
The workflow to migrate linked projects and project templates to.
Required when DeleteOperation is 'migrate'.
projectStatusMapping
Maps source workflow project statuses to target workflow project statuses during migration.
taskStatusMapping
Maps source workflow task statuses to target workflow task statuses during migration.
keepCustomFields
Whether to keep existing non-workflow custom fields when migrating. Default: true.
keepCustomAutomations
Whether to keep existing non-workflow automations when migrating. Default: true.
Response
No Content
Errors
400
Bad Request Error
404
Not Found Error

