MWAAServerless / Client / delete_workflow

delete_workflow

MWAAServerless.Client.delete_workflow(**kwargs)

Deletes a workflow and all its versions. This operation permanently removes the workflow and cannot be undone. Amazon Managed Workflows for Apache Airflow Serverless ensures that all associated resources are properly cleaned up, including stopping any running executions, removing scheduled triggers, and cleaning up execution history. The deletion process respects the multi-tenant isolation boundaries and ensures that no residual data or configurations remain that could affect other customers or workflows.

See also: AWS API Documentation

Request Syntax

response = client.delete_workflow(
    WorkflowArn='string',
    WorkflowVersion='string'
)
Parameters:
  • WorkflowArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) of the workflow you want to delete.

  • WorkflowVersion (string) – Optional. The specific version of the workflow to delete. If not specified, all versions of the workflow are deleted.

Return type:

dict

Returns:

Response Syntax

{
    'WorkflowArn': 'string',
    'WorkflowVersion': 'string'
}

Response Structure

  • (dict) –

    • WorkflowArn (string) –

      The Amazon Resource Name (ARN) of the deleted workflow.

    • WorkflowVersion (string) –

      The version of the workflow that was deleted.

Exceptions

  • MWAAServerless.Client.exceptions.ThrottlingException

  • MWAAServerless.Client.exceptions.ValidationException

  • MWAAServerless.Client.exceptions.ResourceNotFoundException

  • MWAAServerless.Client.exceptions.AccessDeniedException

  • MWAAServerless.Client.exceptions.InternalServerException

  • MWAAServerless.Client.exceptions.OperationTimeoutException