Put on your protective gear.
Remove and discard the carpet and carpet pad, as you cannot remove mold from porous surfaces. Bag any discarded material and seal it before carrying out of the house, to avoid spreading mold spores.
Fill a bucket with hot water and add several squirts of liquid detergent. Use a nonammonia soap, as combining bleach and ammonia creates a toxic gas, and you will use bleach during the cleaning process.
Scrub the floor, using a stiff brush and the soapy solution. Thoroughly rinse the area with hot water to remove all soap residues. If necessary, use a wet-dry vacuum to remove any excess water.
Fill a clean bucket with hot water and add bleach, with one part bleach to nine parts water.
Mop the floor with the bleach solution, using a clean mop. Do not rinse. Allow the floor to thoroughly dry. This might take about three days.