delete unnecessary pages