Delete duplicate elements but leave one element


#1

Im trying to fix this script to delete duplicate elements but not to delete all of them but leave one.


Delete duplicated objects
#2

Well you’re doing it right :slight_smile:


#3

Wouldn’t a check if the item thats going to be deleted is host to another element be sensible here?

Marcel


#4

Thank you


#5

Just so that other people can find the correct solution I’ll link @awilliams solution here:


#6

Closing this topic so the discussion is occurring in the thread @Jonathan.Olesen links to above.


#7