mongo delete first document collection code example
Example 1: delete an item from db collection mongodb
db.collection.remove(
<query>,
{
justOne: <boolean>,
writeConcern: <document>
}
)
Example 2: mango to delete a collection
db.CollectionName.drop()