Cut off their food supply. Numerous types of beetles can infest your home, and they all have specific foods that they like. Take a close look at any beetles you find. They might be click beetles (which feed on your produce), carpet beetles (which feed on fabrics), or any number of other varieties. Once you have identified what type of beetle you have, you can take steps to limit and protect their favorite food source.