delete method

Future<void> delete(
  1. dynamic id
)

delete document with id from the collection

Implementation

Future<void> delete(id) {
  try {
    CollectionReference colRef = _collectionReference;
    return colRef.doc(id).delete();
  } catch (e) {
    throw Exception(
        'cannot call delete on Query, use collection reference instead');
  }
}