delete method
Deletes the document referred to by this DocumentReference.
A delete for a non-existing document is treated as a success (unless
precondition
is specified, in which case it throws a FirebaseFirestoreAdminException with FirestoreClientErrorCode.notFound).
Implementation
void delete(
DocumentReference<Map<String, dynamic>> documentRef, {
Precondition? precondition,
}) {
if (_writeBatch == null) {
throw Exception(readOnlyWriteErrorMsg);
}
_writeBatch.delete(documentRef, precondition: precondition);
}