How to clear/drop/empty a MongoDb collection with Casbah How to clear/drop/empty a MongoDb collection with Casbah mongodb mongodb

How to clear/drop/empty a MongoDb collection with Casbah


Casbah's equivalent to the shells {} empty document operator is `MongoDBObject.empty

This should work -

db.things.remove(MongoDBObject.empty)