delete method

Future<void> delete(
  1. dynamic id
)
inherited

delete document with id from the collection

Implementation

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