remove dynamic tree