While there are different types of moths, all of them are unwelcome guests in your home. Most chemicals are ineffective in exterminating moths from the house. Mothballs, while useful, can be extremely harmful to people who swallow them or inhale their vapors in large concentrations, according to Oregon State University Extension. If you have a problem with moths in your home or more specifically in your food, you will have to kill them in order to really get rid of them.
Close all windows, doors and other openings where the moths can get in or out.
Reduce the light in the house to a minimum. Follow the moths to whatever sources of light remain.
Use a fly swatter to kill any moths that are within your reach.
Fix a long nose attachment to end of the hose on your vacuum cleaner.
Use the vacuum to kill any moths that remain after using the fly swatter.
Put the infested food in a container in the freezer for one or two days.
Cook the food in an oven preheated to 130 degrees Fahrenheit for 3 hours if you don't want to wait several days.
Take the food out of the freezer or oven.
Clean the food of any moths you find in the food.
Place clean food into an airtight container for future storage.