release_tracks: [ALPHA, BETA]
help_text:
  brief: Remove an IAM policy binding from a table.
  description: |
    Remove an IAM policy binding from a table.

  examples: |
    To remove an IAM policy binding for the role of 'roles/metastore.metadataOwner' for the user
    'test-user@gmail.com', run:

      $ {command} my-table --member='user:test-user@gmail.com' --role='roles/metastore.metadataOwner'

    See https://cloud.google.com/iam/docs/managing-policies for details of
    policy role and member types.

request:
  collection: metastore.projects.locations.services.databases.tables
  ALPHA:
    api_version: v1alpha
  BETA:
    api_version: v1beta

iam:
  enable_condition: false
  policy_version: 0

arguments:
  resource:
    help_text: Table for which to remove the IAM policy from.
    spec: !REF googlecloudsdk.command_lib.metastore.resources:table
