Deleting data with an old type ident


We were creating a data model to represent dealers, distribution centers, etc and created them as extensions to partyRole. We originally had one kind of typeIdent for these, but then changed them. In our tags, we now have old partyRoles with the old typeIdents which is causing conflicts. How do I remove them? I get errors doing a PartyRole.removeAll(“typeIdent==‘XXX’”)