Use the workflowAutomationDeleteWorkflowDefinition mutation to delete all versions of a workflow definition with the specified name.
중요
- To delete a definition, there must be no schedules using it. If the definition is currently used by a schedule, the deletion fails and returns an error.
- All running workflow runs continue to completion even if the definition is deleted.
Input parameters
Parameter | Data type | Description |
|---|---|---|
| String | (Required) The name of the workflow definition to delete. All versions with this name are deleted. |
| String | (Required) Your account ID. |
| Enum | (Required) The scope type ( |
Sample request
mutation { workflowAutomationDeleteWorkflowDefinition( definition: { name: "my-workflow" } scope: { id: "12345678", type: ACCOUNT } ) { definition { name } }}