How to Clean a Washing Machine
Washing machines need regular cleaning to prevent grime, mold, detergent build-up, and hard water deposits, keeping your clothes fresh. Over time, these can accumulate in the drum and hoses, affecting performance. For standard top-load washers, aim for a thorough cleaning twice a year, or every three months in hard-water areas. High-efficiency and front-load washers benefit from monthly cleanings, particularly if dealing with heavily soiled laundry or in humid environments. This can be achieved using commercial cleaners bleach, or vinegar for effective results.

Source: https://www.thespruce.com/how-to-clean-washing-machine-2147314