clean_tree