How do I truncate a collection in MongoDB or is there such a thing?
Right now I have to delete 6 large collections all at once and I\'m stopping the server, deleting
The db.drop() method obtains a write lock on the affected database and will block other operations until it has completed.
db.drop()
I think using the db.remove({}) method is better than db.drop().
db.remove({})