- release_tracks: [ALPHA, GA]
  help_text:
    brief: |
      Delete a Database Migration Service connection profile.
    description: |
      Deletes a connection profile. A connection profile can only be deleted if it is not in use by
      any active migration jobs.
    examples: |
      To delete a connection profile:

          $ {command} CONNECTION_PROFILE --region=us-central1

  request:
    collection: datamigration.projects.locations.connectionProfiles
    GA:
      api_version: v1
    ALPHA:
      api_version: v1alpha2

  arguments:
    resource:
      help_text: |
        Connection profile resource - Connection profile to delete.
      spec: !REF googlecloudsdk.command_lib.database_migration.resources:connection_profile

    params:
    - api_field: force
      arg_name: force
      required: false
      help_text: |
        Cloud SQL replica database is also deleted (only for Cloud SQL connection profiles).
