Using the workato lists function there should be a action to clear the list of all items, similar to the "create" or "append" lists function. This way after all of the items in the current loop at appended to the list at the end of the loop all of the items can be cleared and then the loop can run again with a new set of items instead of the current functionality which is just appending the new set of items to the end of the existing list.
The Append item to list action creates a new list by iterating over a list, each time the action is used.
Can you share more about your use case?
Send us a ticket, we will try our best to assist you with your problem