<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [lite](./firestore_lite.md) &gt; [WriteBatch](./firestore_lite.writebatch.md) &gt; [delete](./firestore_lite.writebatch.delete.md)

## WriteBatch.delete() method

Deletes the document referred to by the provided [DocumentReference](./firestore_.documentreference.md)<!-- -->.

<b>Signature:</b>

```typescript
delete(documentRef: DocumentReference<unknown>): WriteBatch;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  documentRef | [DocumentReference](./firestore_lite.documentreference.md)<!-- -->&lt;unknown&gt; | A reference to the document to be deleted. |

<b>Returns:</b>

[WriteBatch](./firestore_lite.writebatch.md)

This `WriteBatch` instance. Used for chaining method calls.

