Is multiple delete available in sequelize?

I have a multiple contentIds.

Mode.findAll({
    where: {
     id: contentIds
   }
  })

After finding all how can I Delete multiple rows from a table.

Or tell me other options to delete multiple records with a single query.


Example:

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

For more details check the API docs.


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;