delete method

Transaction delete(
  1. DocumentReference<Object?> documentReference
)

Deletes the document referred to by the provided documentReference.

Implementation

Transaction delete(DocumentReference documentReference) {
  assert(
    documentReference.firestore == _firestore,
    'the document provided is from a different Firestore instance',
  );

  return Transaction._(
    _firestore,
    _delegate.delete(documentReference.path),
  );
}