I have a dataset with two columns that I need to remove certain duplicates from. The first is a list of numbers, the second is text strings. For example

5 | Apple
3 | Banana
5 | Apricot
5 | Apple
2 | Banana
3 | Apricot

I need to remove only the duplicate numbers that also have the same text string. So in the above I'd need to take out one of the 5|Apple rows, but nothing else. I can remove duplicates from a single column no problem but am running into difficulty figuring it out for two columns, so appreciate if someone could point me in the right direction. I've been trying with the custom filter function.

Thanks