Unfortunately, you can’t remove items from an array while you’re running through a for loop. This is because the indexes get screwed up.
If you double click the for loop, it will open the macro. SAVE THIS AS A COPY, and you can edit that copy to run the loop backwards. It’s ok to remove from an array if you’re running backwards over the elements.