# GKE Hub v1beta1 API - Class DeleteMembershipRequest (2.0.0-beta09)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.0.0-beta09 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.DeleteMembershipRequest)
- [2.0.0-beta08](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/2.0.0-beta08/Google.Cloud.GkeHub.V1Beta1.DeleteMembershipRequest)
- [1.0.0-beta04](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/1.0.0-beta04/Google.Cloud.GkeHub.V1Beta1.DeleteMembershipRequest)

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

Reference documentation and code samples for the GKE Hub v1beta1 API class DeleteMembershipRequest.

Request message for `GkeHubMembershipService.DeleteMembership` method.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DeleteMembershipRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.DeleteMembershipRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DeleteMembershipRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.DeleteMembershipRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DeleteMembershipRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.DeleteMembershipRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## 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.GkeHub.V1Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1)

## Assembly

Google.Cloud.GkeHub.V1Beta1.dll

## Constructors

### DeleteMembershipRequest()

    public DeleteMembershipRequest()

### DeleteMembershipRequest(DeleteMembershipRequest)

    public DeleteMembershipRequest(DeleteMembershipRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.DeleteMembershipRequest` |

## Properties

### Force

    public bool Force { get; set; }

Optional. If set to true, any subresource from this Membership will also be
deleted. Otherwise, the request will only work if the Membership has no
subresource.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### MembershipName

    public MembershipName MembershipName { get; set; }

[MembershipName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.MembershipName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.DeleteMembershipRequest#Google_Cloud_GkeHub_V1Beta1_DeleteMembershipRequest_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.MembershipName` |   |

### Name

    public string Name { get; set; }

Required. The Membership resource name in the format
`projects/*/locations/*/memberships/*`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### RequestId

    public string RequestId { get; set; }

Optional. A request ID to identify requests. Specify a unique request ID
so that if you must retry your request, the server will know to ignore
the request if it has already been completed. The server will guarantee
that for at least 60 minutes after the first request.

For example, consider a situation where you make an initial request and
the request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.

The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |