A system for cleaning a fluid flowpath connected to a pair of diaphragm pumps in a dialysis machine is disclosed. In essence, the system is based on pushing cleaning fluid back and forth within a fluid flowpath to dislodge debris such as blood components or proteinaceous material.