We had this problem when trying to sell our home as my husband smoked...Bought a product called "Odor Pro"....After several applications on carpet, etc...no smell...The product doesn't have a smell either, as some other products do...It's pricey but works and also gets rid of smelly shoes or anything else that has a bad smell....