# Secret Manager V1beta1 API - Class Google::Cloud::SecretManager::V1beta1::DeleteSecretRequest (v0.22.0)

0.22.0 (latest) 0.21.0 0.20.0 0.19.1 0.18.0 0.17.2 0.16.0 0.15.1 0.14.2 0.13.0 0.12.2 0.11.0 0.10.0 0.9.0 0.8.5 Reference documentation and code samples for the Secret Manager V1beta1 API class Google::Cloud::SecretManager::V1beta1::DeleteSecretRequest.

Request message for
[SecretManagerService.DeleteSecret](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta1/latest/Google-Cloud-SecretManager-V1beta1-SecretManagerService-Client#Google__Cloud__SecretManager__V1beta1__SecretManagerService__Client_delete_secret_instance_ "Google::Cloud::SecretManager::V1beta1::SecretManagerService::Client#delete_secret (method)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #name

    def name() -> ::String

**Returns**

- (::String) --- Required. The resource name of the [Secret](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta1/latest/Google-Cloud-SecretManager-V1beta1-Secret "Google::Cloud::SecretManager::V1beta1::Secret (class)") to delete in the format `projects/*/secrets/*`.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The resource name of the [Secret](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta1/latest/Google-Cloud-SecretManager-V1beta1-Secret "Google::Cloud::SecretManager::V1beta1::Secret (class)") to delete in the format `projects/*/secrets/*`.
**Returns**

- (::String) --- Required. The resource name of the [Secret](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-secret_manager-v1beta1/latest/Google-Cloud-SecretManager-V1beta1-Secret "Google::Cloud::SecretManager::V1beta1::Secret (class)") to delete in the format `projects/*/secrets/*`.