Epsom salt Sprinkle Epsom salts onto your trash can lid or around the areas that pests like to burrow into or dig around. Epsom salts will deter most any pests, including raccoons, mice, and squirrels among others.”