O'Reilly logo
  • Patrick S thinks this is interesting:

  • remove(): This method deletes one or more documents from the collection
  • findOneAndRemove(): This method finds a single document based on a query object and removes it, passing it to the callback function on successful completion
  • findByIdAndRemove(): This method is the same as the findOneAndRemove method, except that it finds a document based on a provided document ID
  • From

    Cover of Mongoose for Application Development


    remove() methods