update of the node state

Started the function to delete a node