JavaScript Answers

How to run Sequelize.js delete query with Node.js?

Spread the love

To run Sequelize.js delete query with Node.js, we call the destroy method.

For instance, we write

  where: {
    // criteria

to call Model.destroy with an object with the where property set to the criteria for the entries we want to delete.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *