Iterate over the collection choosing all the elements you want to delete and putting those in a temporary collection. After you finish iteration remove all found elements from the original collection using method removeAll.
https://www.benchresources.net/copyonwritearraylist-with-remove-operation-in-java/