Is there a way to write a delete/deleteAll query like findAll?
For example I want to do something like this (assuming MyModel is a Sequelize model...):
MyModel.deleteAll({ where: ['some_field != ?', something] })
.on('success', function() { /* ... */ });
For anyone using Sequelize version 3 and above, use:
Model.destroy({
where: {
// criteria
}
})