Carpets and pets don't go together for several reasons, and pet dander is one of them. Ideally, allergy sufferers will have limited carpet in the home since it traps allergens that can build up over time. Other than ripping out the carpet altogether, the best solution to get rid of pet dander is regular cleaning.