Changed delete_all_nodes