About one cup of bleach to a bucket of water should suffice. If you cannot stand the smell of bleach or are wary about using it in your home diluted white vinegar or lemon juice will work as well.
Which means that there is also a known solution.
How to get bad smell out of clothes dryer. Prepare a solution of bleach and water. Never leave damp or wet clothes sitting in the washer or dryer. If your dryer smells musty mix a cup of bleach with a gallon of cool water and then use a soft cleaning cloth such as a microfiber cloth to wipe out the dryer drum with the bleach solution.
The good news is that this problem is pretty common. Start by removing the lint trap from your dryer. Your dryer is not supposed to smell like dirty socks or like your gym clothes that have been left in the laundry basket for a week.
If for whatever reason the trap is not perfectly clean you can then run it under some water and use a soft brush to remove that stubborn dirt. The easiest way to prevent bad odors in the dryer is to hang your clothes outside in the sun to air dry when possible. If the unpleasant dryer smell is coming from an issue with your washer try washing your clothes with a cup of vinegar or a half cup of baking soda.
This problem can be avoided with annual dryer vent cleaning by a professional. To see if lint blockage is creating the smell in your laundry room pull the dryer out from the wall and detach the connection tube. Mix a solution of one part bleach with five parts warm water.
Don t put clothes in the dryer until the bleach has dried completely or it can cause discoloration on clothes. How to get a bad smell out of your dryer. Scrape off as much lint as you can using your hands.
Pour white vinegar in a spray bottle then spray to dampen a few towels with the. Proceed to wipe down the interior of the dryer making sure to lift off any visible residues form the interior of the machine. Moist fabric leads to mildew growth resulting in bad odors.
As a preliminary step using diluted bleach to wipedown the interior odorous residues of the dryer will help to remove any unwanted smells. Be sure and have a mop or shop vac ready just in case you find a tube full of water. Use your vacuum with the hose attachment to suck out the rest of that lint.
Always clean the lint tray after each dryer use to prevent damp lint from building up on the screen.