Additionally, here is another post specifically for role removal with an example attached: Workflow to remove roles.
If your goal is just to remove roles, this should be a simpler solution as you will not need the Loop operator, just be sure to also ass the Wait action mentioned in the solution so automatically assigned roles get removed first.
Thank you,
- Zach