To eliminate pantry moths is a hard task and it must be done fast. The given steps will help you better: 1. Removing the main source of infestation of the moths. Wash your containers with clean and soapy water. 2. Clean the area of your pantry. Wash and clean all the items with water and vinegar to make sure that the unhatched eggs are killed. 3. Contact an expert to treat your home for a moth infestation. They will use safe chemicals and methods to kill all the moths.