Dynamo script to accept changes

Hello everyone,

I made a script to place family and it works fine. But when I change position and run again then again the whole elements are created. I want dynamo to accept the position change, that is deleted the previous one and place new one. Can anyone advise any solution?