deleteInactiveWorkflow method

Future<void> deleteInactiveWorkflow(
  1. String entityId
)

Deletes a workflow.

The workflow cannot be deleted if it is:

  • an active workflow.
  • a system workflow.
  • associated with any workflow scheme.
  • associated with any draft workflow scheme.

Permissions required: Administer Jira global permission.

Implementation

Future<void> deleteInactiveWorkflow(String entityId) async {
  await _client.send(
    'delete',
    'rest/api/3/workflow/{entityId}',
    pathParameters: {
      'entityId': entityId,
    },
  );
}