andreluizreis
5/23/2017 - 4:29 PM

Destroy / Delete

Destroy / Delete

return Task.destroy({
  where: {
    subject: 'programming'
  },
  truncate: true /* this will ignore where and truncate the table instead */
});