Thankfully, they are not harmful, but they are gross, so in order to eliminate them, you need to look in every dry food package and sealed container. If you see the pest in any container, throw it away, thoroughly clean the closet by vacuuming everywhere, use a flashlight to check for larvae or cocoons, and then wipe down your food items and put them away.