Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

force delete in sequelize

await Post.destroy({
  where: {
    id: 1
  },
  force: true
});
// DELETE FROM "posts" WHERE "id" = 1
Source by sequelize.org #
 
PREVIOUS NEXT
Tagged: #force #delete #sequelize
ADD COMMENT
Topic
Name
6+9 =