public sealed class DeletePolicyRequest : IMessage<DeletePolicyRequest>, IEquatable<DeletePolicyRequest>, IDeepCloneable<DeletePolicyRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Identity and Access Management (IAM) v2 API class DeletePolicyRequest.
Optional. The expected etag of the policy to delete. If the value does not match
the value that is stored in IAM, the request fails with a 409 error code
and ABORTED status.
If you omit this field, the policy is deleted regardless of its current
etag.
Required. The resource name of the policy to delete. Format:
policies/{attachment_point}/denypolicies/{policy_id}
Use the URL-encoded full resource name, which means that the forward-slash
character, /, must be written as %2F. For example,
policies/cloudresourcemanager.googleapis.com%2Fprojects%2Fmy-project/denypolicies/my-policy.
For organizations and folders, use the numeric ID in the full resource
name. For projects, you can use the alphanumeric or the numeric ID.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eDeletePolicyRequest\u003c/code\u003e class within the Google Cloud Identity and Access Management (IAM) v2 API for .NET.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDeletePolicyRequest\u003c/code\u003e is used as the request message for the \u003ccode\u003eDeletePolicy\u003c/code\u003e operation, allowing for the deletion of a specified policy.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eName\u003c/code\u003e property is a required field that specifies the resource name of the policy to be deleted, formatted as \u003ccode\u003epolicies/{attachment_point}/denypolicies/{policy_id}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe optional \u003ccode\u003eEtag\u003c/code\u003e property can be used to ensure the policy being deleted matches a specific version; if the etag is omitted, the policy is deleted regardless of version.\u003c/p\u003e\n"],["\u003cp\u003eThere are currently 4 versions of the library available, the latest being \u003ccode\u003e1.3.0\u003c/code\u003e and then \u003ccode\u003e1.2.0\u003c/code\u003e, \u003ccode\u003e1.1.0\u003c/code\u003e, and \u003ccode\u003e1.0.0\u003c/code\u003e consecutively.\u003c/p\u003e\n"]]],[],null,[]]