delete method

WriteBatch delete(
  1. DocumentReference<Object?> documentRef
)

Deletes the document referred to by documentRef.

Implementation

WriteBatch delete(DocumentReference<Object?> documentRef) {
  _firestore.validateReference(documentRef);
  _verifyNotCommitted();
  _mutations.add(DeleteMutation(documentRef.key, Precondition.none));
  return this;
}