A LEANING Dorchester wall could be demolished and rebuilt after its foundations were undermined by tree routes.