Pour 2 cups of white distilled vinegar into a dishwasher-safe glass. Place the glass on the top rack inside the dishwasher and set the appliance to the hottest water setting. Run the empty dishwasher, through a cycle, to allow the water to mix with the vinegar. Set the dishwasher to the air-dry or energy-saving setting to avoid using the heat option.
Sprinkle baking soda inside the dishwasher to cover all areas. Allow the baking soda to sit in the dishwasher overnight. Run the dishwasher on the hottest water setting to remove any lingering odors.
Fill the detergent compartment of the dishwasher with bleach. Run the dishwasher on the hottest setting then run it one more time to rinse away the bleach residue. Bleach will kill any lingering bacteria and deodorize the dishwasher.