delete unnecessary xml