# Cloud Firestore V1 API - Class Google::Cloud::Firestore::V1::DeleteDocumentRequest (v2.4.0)

2.4.0 (latest) 2.3.0 2.2.1 2.1.1 2.0.1 1.3.0 1.2.0 1.1.1 1.0.0 0.14.0 0.13.0 0.12.0 0.11.1 0.10.0 0.9.0 0.8.0 0.7.1 0.6.0 0.5.0 0.4.8 Reference documentation and code samples for the Cloud Firestore V1 API class Google::Cloud::Firestore::V1::DeleteDocumentRequest.

The request for
[Firestore.DeleteDocument](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-v1/latest/Google-Cloud-Firestore-V1-Firestore-Client#Google__Cloud__Firestore__V1__Firestore__Client_delete_document_instance_ "Google::Cloud::Firestore::V1::Firestore::Client#delete_document (method)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #current_document

    def current_document() -> ::Google::Cloud::Firestore::V1::Precondition

**Returns**

- ([::Google::Cloud::Firestore::V1::Precondition](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-v1/latest/Google-Cloud-Firestore-V1-Precondition)) --- An optional precondition on the document. The request will fail if this is set and not met by the target document.

### #current_document=

    def current_document=(value) -> ::Google::Cloud::Firestore::V1::Precondition

**Parameter**

- **value** ([::Google::Cloud::Firestore::V1::Precondition](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-v1/latest/Google-Cloud-Firestore-V1-Precondition)) --- An optional precondition on the document. The request will fail if this is set and not met by the target document.
**Returns**

- ([::Google::Cloud::Firestore::V1::Precondition](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-firestore-v1/latest/Google-Cloud-Firestore-V1-Precondition)) --- An optional precondition on the document. The request will fail if this is set and not met by the target document.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Required. The resource name of the Document to delete. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The resource name of the Document to delete. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
**Returns**

- (::String) --- Required. The resource name of the Document to delete. In the format: `projects/{project_id}/databases/{database_id}/documents/{document_path}`.