delete method
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');
}
}