How Revit recognizes and indexs Duplicate?

Thanks a bunch. Now I can select duplicate items.

I can easily delete duplicate by removing 0 index from each list.
what if I have more than 2 duplicates, is there a way to instruct ’ keep all except 1’ .