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 |
Is mongodb stitch free?
How did mongodb get its name?
Is mongodb a database?
Is it possible to remove old files in the movechunk directory?
Is mongodb free for commercial?
What is replica set in mongodb? Explain
Why should I use mongodb?
What is metadata in mongodb?
How to install mongodb on our machine?
How to convert string to objectid in mongoose?
What is a table called in mongodb?
Is mongodb support replication?
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)