The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

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.