How to kill mold in carpet
To kill mold on the carpet you can use a liquid solution like Safe Shield to remove the mold spores. In addition, it is also advisable to look for the source of the moisture and deal with it.
Clean it professionally, if it's a big enough problem. You might need to take up the carpet and replace the pad or part of the pad underneath.