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.
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.
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).
[[["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\u003eThe \u003ccode\u003eDeleteMembershipRequest\u003c/code\u003e class is used to send a request to delete a Membership via the \u003ccode\u003eGkeHubMembershipService.DeleteMembership\u003c/code\u003e method in the GKE Hub v1beta1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the base \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDeleteMembershipRequest\u003c/code\u003e class contains properties such as \u003ccode\u003eName\u003c/code\u003e (required resource name), \u003ccode\u003eForce\u003c/code\u003e (to delete subresources), \u003ccode\u003eMembershipName\u003c/code\u003e(a typed view of the name), and \u003ccode\u003eRequestId\u003c/code\u003e (for idempotent requests), and has two constructors.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eDeleteMembershipRequest\u003c/code\u003e documentation is for version 2.0.0-beta07, with previous beta versions also available for reference.\u003c/p\u003e\n"]]],[],null,["# GKE Hub v1beta1 API - Class DeleteMembershipRequest (2.0.0-beta07)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0-beta07 (latest)](/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.DeleteMembershipRequest)\n- [2.0.0-beta06](/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/2.0.0-beta06/Google.Cloud.GkeHub.V1Beta1.DeleteMembershipRequest)\n- [1.0.0-beta04](/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/1.0.0-beta04/Google.Cloud.GkeHub.V1Beta1.DeleteMembershipRequest) \n\n public sealed class DeleteMembershipRequest : IMessage\u003cDeleteMembershipRequest\u003e, IEquatable\u003cDeleteMembershipRequest\u003e, IDeepCloneable\u003cDeleteMembershipRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the GKE Hub v1beta1 API class DeleteMembershipRequest.\n\nRequest message for `GkeHubMembershipService.DeleteMembership` method. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e DeleteMembershipRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DeleteMembershipRequest](/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.DeleteMembershipRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DeleteMembershipRequest](/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](/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) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.GkeHub.V1Beta1](/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.GkeHub.V1Beta1.dll\n\nConstructors\n------------\n\n### DeleteMembershipRequest()\n\n public DeleteMembershipRequest()\n\n### DeleteMembershipRequest(DeleteMembershipRequest)\n\n public DeleteMembershipRequest(DeleteMembershipRequest other)\n\nProperties\n----------\n\n### Force\n\n public bool Force { get; set; }\n\nOptional. If set to true, any subresource from this Membership will also be\ndeleted. Otherwise, the request will only work if the Membership has no\nsubresource.\n\n### MembershipName\n\n public MembershipName MembershipName { get; set; }\n\n[MembershipName](/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.MembershipName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.GkeHub.V1Beta1/latest/Google.Cloud.GkeHub.V1Beta1.DeleteMembershipRequest#Google_Cloud_GkeHub_V1Beta1_DeleteMembershipRequest_Name) resource name property.\n\n### Name\n\n public string Name { get; set; }\n\nRequired. The Membership resource name in the format\n`projects/*/locations/*/memberships/*`.\n\n### RequestId\n\n public string RequestId { get; set; }\n\nOptional. A request ID to identify requests. Specify a unique request ID\nso that if you must retry your request, the server will know to ignore\nthe request if it has already been completed. The server will guarantee\nthat for at least 60 minutes after the first request.\n\nFor example, consider a situation where you make an initial request and\nthe request times out. If you make the request again with the same request\nID, the server can check if original operation with the same request ID\nwas received, and if so, will ignore the second request. This prevents\nclients from accidentally creating duplicate commitments.\n\nThe request ID must be a valid UUID with the exception that zero UUID is\nnot supported (00000000-0000-0000-0000-000000000000)."]]