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

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

Suggest An Answer

No suggestions avaliable!

Latest post from MongoDB Interview Questions

Ask Question