Home > @firebase/firestore > / > Transaction > delete
Transaction.delete() method
Deletes the document referred to by the provided DocumentReference.
Signature:
delete(documentRef: DocumentReference<unknown>): this;
Parameters
| Parameter | Type | Description |
|---|---|---|
| documentRef | DocumentReference<unknown> | A reference to the document to be deleted. |
Returns:
this
This Transaction instance. Used for chaining method calls.