Delete duplicate elements but leave one element

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

Well you’re doing it right :slight_smile:

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

Marcel

1 Like

Thank you

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

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