To eliminate the bad smells from the washing machine you can.
Best way to get smell out of washing machine. To use baking soda and vinegar use 14 cup baking soda and 14 cup water in the dispenser. Every three to four months add five to ten tablespoons of citric acid directly into the empty drum of your washing. The baking soda and vinegar should clear out residue in every part of the machine eliminating any mold and eventually help in removing any odors.
Use 12 cup bleach for front loaders 1 cup for top loaders. Fill the tub with warm water and add 1-2 cups of bleach. Make a short wash over 30 C using only a pint of white vinegar.
Another cause of mold contamination in washing machines is wet laundry. The baking soda will kill the funny smell inside your washing machine. Then it houses moisture which in turn becomes a perfect habitat for mold.
If you need a quick way to remove every living thing inside the washer try using bleach. Run a vinegar cleaning cycle regularly. Perform routine cleaning of the dryer vent by using the wand of your vacuum cleaner to remove old lint from the lint screen tray and vent.
And never mix bleach and vinegar according to Bob Vila. Therefore keeping them inside the washing machine after. Mix one-quarter cup of baking soda with an equal amount of water then add the solution to your machines detergent dispenser.
This ingredient is able to completely kill the bacteria in your washing machine and eliminate the bad odours. If the musty odor is coming from your washing machine rather than the dryer run a normal wash cycle with a half cup of baking soda to remove bad smells. Run the washer on hot wash cycle with no laundry in the machine.