remove
model.remove()
Removes all documents that match conditions from the collection. To remove just the first document that matches conditions, set the single option to true.
https://mongoosejs.com/docs/api/model.html#model_Model.remove
remove
Removes all documents that match conditions from the collection. To remove just the first document that matches conditions, set the single option to true.
https://mongoosejs.com/docs/api/model.html#model_Model.remove