Blot up as much of the liquid waste and remove all the solid waste that you can. Then test a small area of carpet to make sure that the cleaning product won’t damage or stain the carpet or rug. Spray the cleaner onto the stained area liberally, then let it soak in for 10-15 minutes. Use a stiff brush to work the cleaner into the carpet, then blot the area dry. There are natural cleaners like white vinegar and baking soda, but enzymatic cleaners do the best and most thorough job of removing stains and odours.