Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.


Delete a Record

In this step, you will learn how to delete records with Sequelize. Once you've created an instance and have a reference to it, you can delete a record from your database using the Sequelize destroy() method.

Delete a Movie

You first need to find a record in order to delete it.

  1. In app.js, use findByPk() to retrieve the movie instance you want to delete: