Unexpected deletion of elements running a script a second time

Hey that is annoying problem for the long time , dynamo cache the result all the time , i wish dynamo have a node to clear that after the run go through.

For my way to deal with it , was Undo [Ctrl+Z] and Redo [Ctrl+y ] on Revit project after dynamo go through.

then the next time dynamo is work again with out <span style=“font-weight: 300;”>deleted anything.</span>

i hope there have a better idea for this problem .