Method: Mongo::Collection#delete_many
- Defined in:
- lib/mongo/collection.rb
#delete_many(filter = nil, options = {}) ⇒ Result
Remove documents from the collection.
994 995 996 |
# File 'lib/mongo/collection.rb', line 994 def delete_many(filter = nil, = {}) find(filter, ).delete_many() end |