mongodb drop collection code example
Example 1: mongodb drop db
db.dropDatabase()
Example 2: delete an item from db collection mongodb
db.collection.remove(
,
{
justOne: ,
writeConcern:
}
)
db.dropDatabase()
db.collection.remove(
,
{
justOne: ,
writeConcern:
}
)