Set the washer to the heavy-duty cycle and use the hot water setting. Add 1 cup white vinegar to the water as it’s filling up.
Close the lid on the washer. Allow the machine to run through a complete wash cycle.
Set the washer to the rinse and spin cycle. Allow it to run through the rinse and spin cycle to remove loosened grime and residue from the machine.
Wipe out the tub of the washer with a dry rag after the cycle has finished. Be sure to wipe around the rim of the tub where dirt and grime often accumulate.