delete in sequelize code example
Example 1: sequelize delete item
YourTable.destroy({
where: {
// criteria
}
})
Example 2: sequelize find deleted
User.find({
where: {email: req.body.user.email},
paranoid: false
})
YourTable.destroy({
where: {
// criteria
}
})
User.find({
where: {email: req.body.user.email},
paranoid: false
})