Collections in MongoDB can be easily truncated using db.collection.remove() command. It has two syntaxes. The remove method can have a query document and an optional justOne boolean.
db.collection.remove(
<query>,
<justOne>
)
Taking query document and an optional remove options document
db.collection.remove(
<query>,
{
justOne: <boolean>,
writeConcern: <document>,
collation: <document>
}
)