public sealed class DeleteSecretRequest : IMessage<DeleteSecretRequest>, IEquatable<DeleteSecretRequest>, IDeepCloneable<DeleteSecretRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Secret Manager v1beta1 API class DeleteSecretRequest.
Request message for
[SecretManagerService.DeleteSecret][google.cloud.secrets.v1beta1.SecretManagerService.DeleteSecret].
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eDeleteSecretRequest\u003c/code\u003e class, which is part of the Secret Manager v1beta1 API in the Google Cloud .NET library.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDeleteSecretRequest\u003c/code\u003e is used as a request message for the \u003ccode\u003eSecretManagerService.DeleteSecret\u003c/code\u003e method to delete a secret.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDeleteSecretRequest\u003c/code\u003e 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, inheriting from the base \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDeleteSecretRequest\u003c/code\u003e class includes properties such as \u003ccode\u003eName\u003c/code\u003e, which is a string representing the resource name of the secret to delete, and \u003ccode\u003eSecretName\u003c/code\u003e, a typed view of the name.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions of the \u003ccode\u003eDeleteSecretRequest\u003c/code\u003e class, with the latest being \u003ccode\u003e3.0.0-beta05\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Secret Manager v1beta1 API - Class DeleteSecretRequest (3.0.0-beta06)\n\nVersion latestkeyboard_arrow_down\n\n- [3.0.0-beta06 (latest)](/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta1/latest/Google.Cloud.SecretManager.V1Beta1.DeleteSecretRequest)\n- [3.0.0-beta05](/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta1/3.0.0-beta05/Google.Cloud.SecretManager.V1Beta1.DeleteSecretRequest)\n- [2.0.0-beta05](/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta1/2.0.0-beta05/Google.Cloud.SecretManager.V1Beta1.DeleteSecretRequest) \n\n public sealed class DeleteSecretRequest : IMessage\u003cDeleteSecretRequest\u003e, IEquatable\u003cDeleteSecretRequest\u003e, IDeepCloneable\u003cDeleteSecretRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Secret Manager v1beta1 API class DeleteSecretRequest.\n\nRequest message for\n\\[SecretManagerService.DeleteSecret\\]\\[google.cloud.secrets.v1beta1.SecretManagerService.DeleteSecret\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e DeleteSecretRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DeleteSecretRequest](/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta1/latest/Google.Cloud.SecretManager.V1Beta1.DeleteSecretRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DeleteSecretRequest](/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta1/latest/Google.Cloud.SecretManager.V1Beta1.DeleteSecretRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DeleteSecretRequest](/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta1/latest/Google.Cloud.SecretManager.V1Beta1.DeleteSecretRequest), [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.SecretManager.V1Beta1](/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta1/latest/Google.Cloud.SecretManager.V1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.SecretManager.V1Beta1.dll\n\nConstructors\n------------\n\n### DeleteSecretRequest()\n\n public DeleteSecretRequest()\n\n### DeleteSecretRequest(DeleteSecretRequest)\n\n public DeleteSecretRequest(DeleteSecretRequest other)\n\nProperties\n----------\n\n### Name\n\n public string Name { get; set; }\n\nRequired. The resource name of the\n\\[Secret\\]\\[google.cloud.secrets.v1beta1.Secret\\] to delete in the format\n`projects/*/secrets/*`.\n\n### SecretName\n\n public SecretName SecretName { get; set; }\n\n[SecretName](/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta1/latest/Google.Cloud.SecretManager.V1Beta1.SecretName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta1/latest/Google.Cloud.SecretManager.V1Beta1.DeleteSecretRequest#Google_Cloud_SecretManager_V1Beta1_DeleteSecretRequest_Name) resource name property."]]