command in mongodb that is equivalent of sql's truncate code example
Example: delete an item from db collection mongodb
db.collection.remove(
<query>,
{
justOne: <boolean>,
writeConcern: <document>
}
)
db.collection.remove(
<query>,
{
justOne: <boolean>,
writeConcern: <document>
}
)