Here is how to clean a washing machine at home using some DIY ideas that you can prepare in a few minutes. As you know over time, dirt, soap, detergent, and bacteria can build up inside the machine. They produce unpleasant odors and affect the efficiency of your washing machine.