delete method

Transaction delete(
  1. DocumentReference<Map<String, dynamic>> docRef
)

Deletes the document referred by the provided docRef.

If the document does not exist, the operation does nothing and returns normally.

Implementation

Transaction delete(DocumentReference<Map<String, dynamic>> docRef) {
  return Transaction._(
    _firestore,
    _transactionId,
    _transactionWriteBatch..delete(docRef),
  );
}