How to remove duplicates from prime 4 without losing the entire library

I know right, but I have it.