Remove any items from the washing machine.
Pour 2 cups of white vinegar, 1 cup of chlorine bleach or 1 cup of sudsy ammonia in the washing machine.
Set the washer to the largest load setting with the hottest water. Allow the wash cycle to complete.
Wipe the seal around the washing machine door or lid with bleach, ammonia or white vinegar on a damp cloth. If possible, clean beneath the seal to remove trapped buildup and mildew. Use the same cleaner that you used to clean inside the washing machine.
Leave the door or lid open to ventilate the washing machine.