Allowing in fresh air is one method for eliminating odor. Therefore, you should consider keeping the dishwasher and windows open for some time. Using a cup of baking soda to clean the dishwasher can also help eradicate the odor. If the stench is strong, you can use baking soda for two or more cleaning cycles. Overnight, leave a bowl of baking soda out. After cleaning, pour a cup of baking soda in a bowl and allow it to sit overnight. This will assist in absorbing any lingering scents.