How to delete all documents in collection in Mongo db?

Lets you collection name is dummy

db.dummy.remove({})

No comments:

Post a Comment