robbiblubber.org

help | login | search:  
>>

read  source  history 


= drop() =
----
[[MongoDB Driver Function Reference]]


Drops the collection.
More information can be found in the corresponding entry of the [[https://docs.mongodb.com/manual/reference/method/db.collection.drop/index.html|MongoDB Manual]].


[[[@cG

<collection>.drop()

]]]


**Arguments**

[[[@w

|@t0@r0@c0 <collection> | | The target collection. |

]]]


**Return Value**

[[[@w

Returns a result set (cursor).

]]]


**Example**

[[[@cw

db.employees.drop();

]]]

Drops the //employees// collection.





----
[[Main|home]] | [[MongoDB Driver Function Reference]] | [[MongoDB Driver]]