Vinegar is the Solution
As with any cleaner, it’s important to test vinegar on a hidden area before using it to clean the carpet. Using a damp rag, an inconspicuous area of carpet–inside a closet or in a corner, for example–can be moistened before applying the vinegar as if you were actually cleaning the area. The vinegar should be allowed to sit for a few minutes and then be blotted away. After about 24 hours, the area should be examined for color fading or changes in texture.