Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
How can you delete all documents from a collection in MongoDB?
Using the db.collection.deleteMany({}) method.
Using the db.collection.remove({}) method.
Using the db.collection.removeAll() method.
Using the db.collection.deleteAll() method.
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!