Deleting items from dynamic list ASP Core MVC

I’m trying to remove or hide items from a list and I’m facing two problems, 1- the newly cannot be removed, 2- Tried to tag the deleted items as isDeleted = true using Javascript then later delete them in the controller following this answer https://stackoverflow.com/a/40572625/10773318 but it didn’t work.

How can I post a checkbox value to a controller that saves value to session?

I have the following code on checkbox click to get the checkbox value of the checkbox showHideDeletedRps and pass true or false to a controller var rpInfo = await rpService.GetRPByID(id, showDeleted);, I tried the following but it doesn’t keep the selected value or doesn’t update on checkbox change.