Instructions
Place any new grains you purchase in your freezer for a week before moving to the pantry. Though this may seem extreme, most pantry moth infestations are caused by food that was infested before it came to your home. By freezing food before eating it, you kill moth eggs, larvae and adults.
Throw away anything infested with pantry moths. Indian meal moths frequently leave a webbed residue in foods they have infested, so look for this telltale sign in all grains. Don't just put the food in the trash. Completely remove it from your home, or you may end up with a moth infestation in your trash that quickly moves back to the pantry.
Vacuum areas infested by moths thoroughly. Focus especially on corners and any holes in your pantry, which are prime egg-laying locations.
Purchase a pheromone-based moth trap. These are the most effective methods available to prevent adult moths from breeding. The male is attracted to the scent of the trap, which smells like a female. Upon entering the trap, he becomes stuck and cannot breed.