K.B.
I have a top loading washer.
I put it on the heavy duty cycle with hot water, while it's filling up I had Simple Green, also I add it to the bleach section of the washer. I stop the washer before it drains for the rinse cycle and let it set for a few, then let it continue with the cycle.
Leaving the lid up helps it dry out as well.
You can also use bleach, vinegar, etc. I just like the way simple green smells and it does a great job.