I have 10 million documents in a mongo collection as of current_date and want to destroy 6 million documents which are older than yesterday.
Is there any bulk_delete option in mongoid ? I know I can bulk_insert as
Mongo::my_collection.collection.insert(data)
which fires only one insert command.
Similarly is there any way to bulk_delete in mongoid?