1 Matching Annotations
  1. Sep 2020
    1. 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