Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Which of the following is NOT correct regarding removing data in MongoDB?
db.collection.remove({}) will delete all documents in the collection but leave the collection (and its indexes) intact.
After removing all documents with remove({}), you must manually drop indexes if you no longer need them
Dropping a collection is typically faster than removing all documents one-by-one when you need to clear a large collection.
db.collection.drop() will remove the entire collection, including all documents and indexes.
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!