- release_tracks: [ALPHA, BETA, GA]
  help_text:
    brief: |
      Delete a workflow
    description: |
      Delete a workflow and all of its executions.
    examples: |
      To delete the workflow 'my-workflow', run:

          $ {command} my-workflow

      You may also skip waiting for the operation to finish:

          $ {command} my-workflow --async

  arguments:
    resource:
      spec: !REF googlecloudsdk.command_lib.workflows.resources:workflow
      help_text: |
        The name of the workflow to delete.

  async:
    collection: workflows.projects.locations.operations

  input:
    confirmation_prompt: |
      You are about to delete workflow [{__name__}] in [{locationsId}].
      Any associated data will be lost.

  request:
    ALPHA:
      api_version: v1alpha1
    BETA:
      api_version: v1beta
    GA:
      api_version: v1
    collection: workflows.projects.locations.workflows
    modify_request_hooks:
    - googlecloudsdk.command_lib.workflows.hooks:print_default_location_warning
