1.

How do I drop a collection in MongoDB? Write it's syntax

Answer»

To drop a collection in MongoDB, connect to the database where you want to DELETE the collection.

Type the following COMMAND for deleting: db.collection_name.drop()

Related ARTICLE: SQL Interview Questions


Discussion

No Comment Found