im trying to loop on a checkbox array, and send delete request on each checked box, when i run it with several checked boxes, only the cheked box with the last index is deleted.