removeTreeIfExists