The majority of mold species are killed by vinegar. Use white vinegar because it won't discolor the carpet. Both sides of the mold-infested carpet should be thoroughly soaked. After allowing the solution to sit for at least 30 minutes, use a wet-vac or shop-vac to extract as much moisture as possible.