Is multiple delete available in sequelize?

To destroy all entries in a model:

Model.destroy({
    where: {}
}).then(function(){
    console.log('destroy all data');
    res.redirect('/');
})

If you want to delete ALL models of a specific type, you can use:

Model.destroy({where: {}}).then(function () {});

This will delete all records of type 'Model' from database. Tested with mysql;


Example:

Model.destroy({ where: { id: [1,2,3,4] }})

For more details check the API docs.


You can use destroy method on a model:

Model.destroy({
  where: {
    id: contentIds
  }
});

For more details check the API docs.