Delete previous wall creation in Dynamo (python script)

I have created a Python script node, that creates a wall from profile. And everytime i change the values and run the script again, it creates a new one. Is it possible to store somehow the wall that is created and delete the prevoius wall when i hit run. Or is there an other way to delete/change the previous wall?

Have a look at this link:

This toy graph should also help explain things:
Python In Session Trace

Python In Session Trace.dyn (16.8 KB)

Check the comments in the Python closely.

1 Like

Thank you very much! This helped me alot to understand whats happening.

1 Like