This API deletes all the workflow definition versions with the specified name.
Important
- In order to delete a definition, there must be no schedules using the definition. If the definition is currently used by a schedule, deleting the definition will fail and return an error accordingly.
- All running workflow runs will continue to completion even if the definition is deleted.
Input parameters
Parameter | Type | Required | Description |
|---|---|---|---|
| String | Yes | The name of the workflow definition to delete. All versions with this name will be deleted. |
| String | Yes | Your account ID. |
| Enum | Yes | The scope type (ACCOUNT). |
Sample request
mutation { workflowAutomationDeleteWorkflowDefinition( definition: { name: "my-workflow" } scope: { id: "12345678", type: ACCOUNT } ) { definition { name } }}