The only people who can answer this definitively are the people at the various selection boards, who can examine your records properly.
I doubt anyone would "remove" it from your records, but it may be appropriate for additional notes to be added, to refute the original diagnosis.
Bear in mind that a food allergy is probably a complete bar to military service.