delete method

WriteBatch delete(
  1. DocumentReference documentRef, [
  2. Precondition precondition
])

Deletes the document referred to by the provided DocumentReference.

@param documentRef A reference to the document to be deleted. @param precondition A Precondition to enforce for this delete. @return This WriteBatch instance. Used for chaining method calls.

Implementation

external WriteBatch delete(
  DocumentReference documentRef, [
  Precondition precondition,
]);