remove the tree nodes.