reset script to clean up a node