How to delete a repeat region and insert a new one

Hello,

I have been trying for days to delete a repeat element in the database and add a new one. It is not working so far. I tried the conditional step it is not working also.

I am trying to delete all element in the database not equal to the selected value.
Insert element that have been selected.

Any help will be very welcome.
Happy holiday to all wappler community.

What is inside your POST value used for the repeat ?
Probably not something repeat can iterate on.

In the delete condition, should the blog category match the blog ID? At the moment the category is Not Equal

Does the insert work? If so the repeat is iterating.

The delete works but not the insert.
@bpj inside the post, I have multiple select input element. I used repeat to insert the multiple select in the database. But I wanted to remove it if it is not selected during the update of the form. and insert new element that have been selected.
If the element intact if it is selected again.
I hope you understand now what I am trying to do.