Remove a document
Last updated 2 years ago
Was this helpful?
Parameter
Description
_id
|
The id of the document that will be removed
User.remove({ _id: 1 }) // true
Or remove a user from find:
const userFound = User.find({ _id: 1 }) userFound.remove() // true