2.9.0 (latest) 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.2.0 1.1.0 1.0.0

    public sealed class DeletePolicyRequest : IMessage<DeletePolicyRequest>, IEquatable<DeletePolicyRequest>, IDeepCloneable<DeletePolicyRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Organization Policy v2 API class DeletePolicyRequest.

The request sent to the \[DeletePolicy\]
\[google.cloud.orgpolicy.v2.OrgPolicy.DeletePolicy\] method.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> DeletePolicyRequest

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[DeletePolicyRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OrgPolicy.V2/latest/Google.Cloud.OrgPolicy.V2.DeletePolicyRequest.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DeletePolicyRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OrgPolicy.V2/latest/Google.Cloud.OrgPolicy.V2.DeletePolicyRequest.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[DeletePolicyRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OrgPolicy.V2/latest/Google.Cloud.OrgPolicy.V2.DeletePolicyRequest.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.OrgPolicy.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OrgPolicy.V2/latest/Google.Cloud.OrgPolicy.V2.md.txt)

## Assembly

Google.Cloud.OrgPolicy.V2.dll

## Constructors

### DeletePolicyRequest()

    public DeletePolicyRequest()

### DeletePolicyRequest(DeletePolicyRequest)

    public DeletePolicyRequest(DeletePolicyRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `DeletePolicyRequest` |

## Properties

### Etag

    public string Etag { get; set; }

Optional. The current etag of policy. If an etag is provided and does not
match the current etag of the policy, deletion will be blocked and an
ABORTED error will be returned.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Name

    public string Name { get; set; }

Required. Name of the policy to delete.
See the policy entry for naming rules.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### PolicyName

    public PolicyName PolicyName { get; set; }

[PolicyName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OrgPolicy.V2/latest/Google.Cloud.OrgPolicy.V2.PolicyName.md.txt)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.OrgPolicy.V2/latest/Google.Cloud.OrgPolicy.V2.DeletePolicyRequest.md.txt#Google_Cloud_OrgPolicy_V2_DeletePolicyRequest_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `PolicyName` |   |