You have to use an iterator to loop over your list. For each item you can call rollback.
Since 2.4.3 you can use the rollback Microflow activity to do the rollback.
In older release you need to create a custom Java action calling Core.rollback(id)
.