Wipe out the Dishwasher
First, remove the bottom rack. With the rack removed, clean out any gunk or large food particles you find by hand or with a sponge or brush. Next remove the filter at the bottom of your dishwasher and clean it in the sink. Now take a rag or sponge soaked in distilled white or cleaning vinegar and wipe the door gasket.
Run a Cycle with Vinegar
Fill a Tupperware or other dishwasher-safe container with a cup or two of vinegar, and then place it in the top rack. With the rest of the dishwasher empty, run a cycle. The vinegar will naturally remove odors and help dissolve old detergent and mineral deposits that have built up, and even clear away any grease that could lead to clogs in your plumbing.
Add Baking Soda
Once the cycle is complete, you can absorb additional food particles by adding a cup of baking soda, which is slightly abrasive, to the bottom rack and running a short cycle. Once the cycle is complete, the interior of the dishwasher should be completely clean and odor free.
If your dishwasher is still not entirely clean, you might consider running a cycle with bleach, although it’s not recommended for dishwashers with stainless steel interiors. To clean your dishwasher with bleach, add 1/2 to 1 cup of bleach to your machine and run a cycle. Do not mix vinegar with bleach.