Place a dishwasher-safe cup filled with plain white vinegar on the top rack of the dishwasher. Using the hottest water available, run the dishwasher through a cycle – except for the cup of vinegar, the dishwasher needs to be empty.