In MongoDB the db.collection.remove()
method removes documents from a collection. In other words, it deletes them.
The collection
part is the name of the collection with which to remove the documents from.
You can delete all documents, some documents, or a single document as required.
Continue reading