Delete records without pk using update_all

Hello everyone,

I just get noticed that Repo.delete and Repo.delete doesn’t work with entities without pk. I found in this discussion that I could do it using Repo.update_all, but after searching for a while I don’t find the way to do it.

edit: NVM, you aren’t supposed to remove records with update_all, but with delete_all.

1 Like