Delete elements when part is done


Hi all

Is it possible to delete elements that are being used earlier in the graph.

I’m placing som familys where the exsting windows are, and i would like to delete the exsting windows after the new familys has been placed

i’ve tried using transaction start/end, but the first part of my graph’s output is not the windows i need to delete, so i cant get that to work.

is there a way to define when af function is to start?

Delete rebars at the end of a script after create new ones