How to drop collection in mongodb

How to drop collection in mongodb

In this chapter, we will see how you can drop collection in mongoDB

Syntax

you can use below syntax to drop collection

db.COLLECTION_NAME.drop()

Example

Hope you like my this topic so please visit again.

Leave a Reply
Your email address will not be published. *