We had to do one room in a condo that had been used to confine a dog for some time. Carpet was special and couldn't be matched.
We pulled the carpet, cut at doorway. Hung it over a cable outside at the shop and powerwashed both sides for almost an hour until the fecal shower turned clear for several minutes.
Pulled and bagged pad. Scrubbed and Kilzed the floor and tackstrip. New pad.
Reinstalled carpet.
Told the guy up front $300, (grossly underbid we felt afterward). It looked, felt, and smelled new, better than the rest of the place, but he still grumbled.
Won't do it again....at any price.