Remove the racks, trays, and filters from your dishwasher and wash them thoroughly using dish soap and warm water. Use a sponge or brush to scrub visibly moldy areas inside your dishwasher. Place the removed components back in the dishwasher. Add vinegar to a bowl, place it on the top rack of your dishwasher, and set the washer to work at the highest heat setting. After completing one entire wash cycle, sprinkle baking soda inside your dishwasher and set it to another wash cycle.