Delete Element at the end of the scrip

Good day,
I have a scrip that gets me the center line of a rebar to then make a split, my problem is when I want to delete the original bar (selected), it turns out that dynamo removes it before proceeding and I get an error. I do not know how to do, thanks.

Already solved

Could you please share your solution (and mark it as solution) so others with a similar problem can more easily solve their own problems?
Thanks in advance!

1 Like

Place an input wait node at the end of the last process, then I put it to delete.

3 Likes