core reset function for regions, inputs and trees.