If you do not want or are unable to use a commercial cleaner, you can clean your washing machine using bleach. Note: Also remember to wipe around the inside of the rubber seal if you have a front loading machine.
Most washing machines have a self cleaning mode and it is recommended to run this once a month to ensure that your washer is clear of any detergent or mineral build-up.
Even though it is your washing machine's job to clean your clothing, it is your job to clean your machine! Just like detergent and mineral build-up can cause your diapers to work ineffectively, so too can these cause your washing machine to clean ineffectively. Getting fresh, clean laundry from your washing machine requires an effective wash routine and regular machine maintenance.