How do I drop a collection in mongodb? Write it's syntax
Answer Posted / Ashish Gupta
The command to drop a collection in MongoDB is 'db.collectionName.drop()'. Replace 'collectionName' with the name of the collection you want to drop.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers