# Secret Manager v1beta2 API - Class DeleteSecretRequest (1.0.0-beta04)

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

- [1.0.0-beta04 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.DeleteSecretRequest)
- [1.0.0-beta03](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/1.0.0-beta03/Google.Cloud.SecretManager.V1Beta2.DeleteSecretRequest)

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

Reference documentation and code samples for the Secret Manager v1beta2 API class DeleteSecretRequest.

Request message for
\[SecretManagerService.DeleteSecret\]\[google.cloud.secretmanager.v1beta2.SecretManagerService.DeleteSecret\].

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DeleteSecretRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.DeleteSecretRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DeleteSecretRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.DeleteSecretRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DeleteSecretRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.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)

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

## Assembly

Google.Cloud.SecretManager.V1Beta2.dll

## Constructors

### DeleteSecretRequest()

    public DeleteSecretRequest()

### DeleteSecretRequest(DeleteSecretRequest)

    public DeleteSecretRequest(DeleteSecretRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.DeleteSecretRequest` |

## Properties

### Etag

    public string Etag { get; set; }

Optional. Etag of the \[Secret\]\[google.cloud.secretmanager.v1beta2.Secret\].
The request succeeds if it matches the etag of the currently stored secret
object. If the etag is omitted, the request succeeds.

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

### Name

    public string Name { get; set; }

Required. The resource name of the
\[Secret\]\[google.cloud.secretmanager.v1beta2.Secret\] to delete in the format
`projects/*/secrets/*`.

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

### SecretName

    public SecretName SecretName { get; set; }

[SecretName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.SecretName)-typed view over the [Name](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.DeleteSecretRequest#Google_Cloud_SecretManager_V1Beta2_DeleteSecretRequest_Name) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SecretManager.V1Beta2/latest/Google.Cloud.SecretManager.V1Beta2.SecretName` |   |