You can use a homemade detergent using soap and baking soda. You will require having some tools such as a bucket, a clean rag, and a brush. Well, you should start by vacuuming the carpet to remove debris and dirt. Place warm water into the bucket and it baking soda and soap to make a detergent after which you will spread it over the carpet. Scrub using the brush until you are certain that every part of the carpet is effectively cleaned.
Afterward, you can air-dry it by opening windows or taking it outside. The solution will be acting on the pathogens that are trapped in the carpet. After drying vacuum your carpet. By doing so your carpet will be left sparkling clean with no germs and other harmful bacteria.