delete method

WriteBatch delete(
  1. DocumentReference documentRef
)

Deletes the document referred to by the provided DocumentReference.

DocumentReference is a reference to the document to be deleted. Value must not be null.

Returns non-null WriteBatch instance. Used for chaining method calls.

Implementation

WriteBatch delete(DocumentReference documentRef) =>
    WriteBatch.getInstance(jsObject.delete(documentRef.jsObject));