how to remove something from mongodb document code example
Example 1: how to delete a document in mongodb
to delete a document
db.games.deleteOne({name:"Snake"})
Example 2: delete an item from db collection mongodb
db.collection.remove(
<query>,
{
justOne: <boolean>,
writeConcern: <document>
}
)