delete method

Future<void> delete({
  1. JsonMap? filter,
  2. bool optimistic = false,
})

Deletes documents from the collection matching filter.

Implementation

Future<void> delete({JsonMap? filter, bool optimistic = false}) {
  return _client.delete(
    _name,
    filter: filter ?? <String, dynamic>{},
    optimistic: optimistic,
  );
}