adspace


What is the command which are use to drop database in mongodb?

Answer Posted / Pulkit Sharma

The command to drop a database in MongoDB is 'db.databaseName.drop()'. Replace 'databaseName' with the name of the database you want to drop.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the command syntax for inserting a document?

63


How did mongodb get its name?

60


How to define array in mongoose schema?

79