Please see if one of the following will solve the problem.
Black mold in washing machine drum. 4 On the next day do a clean tub or quick wash to wash away the molds do not put in any clothing. To get started take a cup of vinegar and the juice of half a lemon. It is the end promotes the growth of mold.
Run the washing machine empty for a few wash cycles. Add 1 cup bleach and 1 cup baking soda into the washing powder drawer. Washing machines especially high-efficiency front-loading models can be the perfect breeding ground for mold.
Hydrogen peroxide and lemon juice are effective cleaners that combat mould and inhibit its growth. Lemons and vinegar act as natural fungicides to kill mold and keep it from growing back. 2 cups water ½ cup hydrogen peroxide and ¼ cup lemon juice.
White distilled vinegar is another solution that can be used to clean mold growth from your washing machine rubber seal. Spray the entire washer basin with EC3 mold solution. Black mold is common with the front-loading washing machine which has a watertight and airtight seal.
Use only the right detergent. If left untreated this mold gives out a horrible smell from the washing machines and the clothes that you clean with it. Thanks to the moisture and damp conditions in your washing machine mold can thrive and grow in the seal around the door or fester in the corners of the drum undetected until you smell that fateful smell.
Add 1 cup of baking soda around the seal inside the drum. 2 cups water ¼ cup lemon juice and ½ cup distilled white vinegar. I wrote a post about laundry and about cleaning your washing machine for mold periodically as a preventative measure and to remove an surface mold or grime.