| |
read source history
= dropCollection() =
----
[[MongoDB Driver Function Reference]]
Drops a collection.
More information can be found in the corresponding entry of the [[https://docs.mongodb.com/manual/reference/method/db.dropCollection/index.html|MongoDB Manual]].
[[[@cG
db.dropCollection(<name>)
]]]
**Arguments**
[[[@w
|@t0@r0@c0 <name> | | Collection name. |
]]]
**Example**
[[[@cw
db.dropCollection("bosses");
]]]
Removes the collection named //bosses//.
----
[[Main|home]] | [[MongoDB Driver Function Reference]] | [[MongoDB Driver]]
|