- NAME
-
- gcloud alpha iam policies delete - delete a policy on the given attachment point with the given name
- SYNOPSIS
-
-
gcloud alpha iam policies delete
POLICY_ID
--attachment-point
=ATTACHMENT_POINT
--kind
=KIND
[--etag
=ETAG
] [GCLOUD_WIDE_FLAG …
]
-
- DESCRIPTION
-
(ALPHA)
Delete a policy on the given attachment point with the given name. - EXAMPLES
-
The following command deletes the IAM policy defined at the resource project
of kind123
and iddenypolicies
, with etagmy-deny-policy
:abc
gcloud alpha iam policies delete my-deny-policy --attachment-point=cloudresourcemanager.googleapis.com/projects/123 --kind=denypolicies --etag=abc
- POSITIONAL ARGUMENTS
-
POLICY_ID
- Policy ID that is unique for the resource to which the policy is attached.
- REQUIRED FLAGS
-
--attachment-point
=ATTACHMENT_POINT
- Resource to which the policy is attached. For valid formats, see https://cloud.google.com/iam/help/deny/attachment-point.
--kind
=KIND
-
Policy type. Use
denypolicies
for deny policies.
- OPTIONAL FLAGS
-
--etag
=ETAG
- Etag that identifies the version of the existing policy. If omitted, the policy is deleted regardless of its current etag.
- GCLOUD WIDE FLAGS
-
These flags are available to all commands:
--access-token-file
,--account
,--billing-project
,--configuration
,--flags-file
,--flatten
,--format
,--help
,--impersonate-service-account
,--log-http
,--project
,--quiet
,--trace-token
,--user-output-enabled
,--verbosity
.Run
$ gcloud help
for details. - NOTES
-
This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct project,
you might be trying to access an API with an invitation-only early access
allowlist. These variants are also available:
gcloud iam policies delete
gcloud beta iam policies delete
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-06-25 UTC.