How to get rid of pantry moths – step 3: wash all containers and pantry surfaces with soap and hot water (or vinegar). freeze any non-infested but suspicious grains at 0°F for 4-7 days to kill eggs. discard any cardboard packaging from new products. never mix old and new food in the same container.