deleteOne method

void deleteOne(
  1. DeleteOneStatement deleteRequest
)

deleteOne deletes a single document in the collection that match the filter. If multiple documents match, deleteOne will delete the first matching document only.

Implementation

void deleteOne(DeleteOneStatement deleteRequest) =>
    _setCommand(DeleteOneOperation(collection!, deleteRequest));