Duplicate the For Each Loop macro and add the selected nodes to it.
After removing an element, Loop Body will be called again at the same index, but in its place there will be a new element that has moved after the removal.
In my case, the Array Index during execution will be 0 1 1.
