Bulk Deletion on Multiple Row Selection

Hii, I have a table with multiselect enabled and I would like to run a bulk delete action based on the id of each selected row but this method only delete the recently selected row. I also follow this topic but it could not work.

Here is the method that I am using:

I Solved this issue