You can’t delete elemetns in an existing list. You have to collect them in a new list. If an element should be skipped, just do not add it into the new list.
After collecting the items in new temporary list, this one can be mapped back to the original list after the loop has finished and the temporary list can then be dropped.
Remember to leave the output array on the LOOP step empty, otherwise the input and output array are required to have the same length as the $iterator variable applies to both.