For a front load machine, use 2 cups vinegar and ½ cup baking soda or the recommended washing machine cleaner tablets, such as Affresh tablets. For a top load, set the machine at its hottest and largest setting. When it is filled up with water, add the vinegar and baking soda, and then let it run the whole cycle.