voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
27 lines (15 loc) • 853 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/firestore](./firestore.md) > [lite](./firestore_lite.md) > [Transaction](./firestore_lite.transaction.md) > [delete](./firestore_lite.transaction.delete.md)
## Transaction.delete() method
Deletes the document referred to by the provided [DocumentReference](./firestore_.documentreference.md)<!-- -->.
<b>Signature:</b>
```typescript
delete(documentRef: DocumentReference<unknown>): this;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| documentRef | [DocumentReference](./firestore_lite.documentreference.md)<!-- --><unknown> | A reference to the document to be deleted. |
<b>Returns:</b>
this
This `Transaction` instance. Used for chaining method calls.