How do I drop a collection in mongodb? Write it's syntax
Answer / Ashish Gupta
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 |
What is the basic syntax to use index in mongodb?
In mongodb, how sharding and replication work together?
How much is mongodb enterprise?
What is mongodb and how it works? Explain
Where is the mongodb data stored?
What is the syntax of update document?
What port does mongodb use?
How to configure the cache size for wiredtiger in mongodb?
Is mongodb a nosql database? Explain.
What is storage encryption?
How does sharding work with replication?
Is mongodb good for large data?
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)