public sealed class DeleteSecretRequest : IMessage<DeleteSecretRequest>, IEquatable<DeleteSecretRequest>, IDeepCloneable<DeleteSecretRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Secret Manager v1 API class DeleteSecretRequest.
Request message for [SecretManagerService.DeleteSecret][google.cloud.secretmanager.v1.SecretManagerService.DeleteSecret].
Optional. Etag of the [Secret][google.cloud.secretmanager.v1.Secret]. The request succeeds if it matches
the etag of the currently stored secret object. If the etag is omitted,
the request succeeds.
[[["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 page provides documentation for the \u003ccode\u003eDeleteSecretRequest\u003c/code\u003e class within the Google Cloud Secret Manager v1 API, specifically for version 2.3.0 of the .NET library.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDeleteSecretRequest\u003c/code\u003e class is used to construct requests for deleting a secret, and it inherits from various interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties such as \u003ccode\u003eEtag\u003c/code\u003e (optional) to ensure the correct secret is deleted, \u003ccode\u003eName\u003c/code\u003e (required) specifying the secret's resource name, and \u003ccode\u003eSecretName\u003c/code\u003e which provides a strongly-typed view of the secret's resource name.\u003c/p\u003e\n"],["\u003cp\u003eThe page provides a history of the documentation versions, ranging from version 2.5.0 down to 1.3.0, with 2.5.0 being the most current version.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors for the \u003ccode\u003eDeleteSecretRequest\u003c/code\u003e class, one being a parameterless constructor and the other taking an existing \u003ccode\u003eDeleteSecretRequest\u003c/code\u003e object to create a copy.\u003c/p\u003e\n"]]],[],null,[]]