What is the fastest way to get rid of pantry moths – freeze or heat-treat any salvageable items. use diatomaceous earth in cracks and corners — it dehydrates larvae. check behind and beneath appliances like toasters and microwaves. repeat inspection after 24–48 hours.