To prevent foul odors, run regular cleaning cycles using hot water and vinegar or a washing machine cleaner. Additionally, leave the door open between wash cycles to allow the interior to dry thoroughly. This helps discourage the growth of mold or mildew and keeps your washing machine smelling fresh.