How do I drop a collection in mongodb?
Answer / Yogesh Singh Garbyal
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 |
Is mongodb a relational database?
Which are the different languages supported by mongodb?
What is the role of use command?
What kind of database is mongodb?
When was mongodb founded and why it is called mongodb?
What is the use of a namespace in mongodb?
What is the master or primary key in mongodb?
What are the difference between sql and mongodb? Explain
How does mongodb provide consistency?
I am getting error cannot overwrite model once compiled mongoose, how to fix it?
How do you configure to cache size for mmapv1 in mongodb?
Why should we use mongodb?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)