.remove()
Remove a document
User.remove({ _id: 1 }) // true
Or remove a user from find:
const userFound = User.find({ _id: 1 })
userFound.remove() // true
Last updated
Was this helpful?
Remove a document
User.remove({ _id: 1 }) // true
Or remove a user from find:
const userFound = User.find({ _id: 1 })
userFound.remove() // true
Last updated
Was this helpful?