Simple Solution
If your home has wall-to-wall carpeting, it’s necessary to bring in a carpet-cleaning machine from time to time to shampoo the entire floor.
But for small spot cleaning and to remove odors, all you need is some baking soda, a stiff-bristle scrub brush and a spray bottle filled with hot tap water. Start by sprinkling a generous amount of baking soda onto the carpet.
Next, mist the area with hot water.
Then, aggressively scrub the spot with the scrub brush. Allow the spot to dry, then vacuum up any residue.