How to eliminate Duplicates (walls in Revit) using Dynamo?

By using a Wall Finishes dynamo definition, every time I run Dynamo again it duplicates the walls. I got to a point where I can identify them but haven’t been able to delete those duplicates.

Any help will be really appreciated.
Wall-Finishes_By Room Schedule.dyn (40.1 KB)

I just found a solution to this somewhere in this forum. Thanks to anyone involved!

1 Like

Might want to include some form of check to see if anything is hosted to the elements you are deleting… particularly if it’s hosted to a system family rather than face based.