<p>An electrode is positioned with a predetermined gap between the electrode and a surface of a work in an electrolyte tank. Pulses are intermittently applied to the electrode. Electrolyte including residual products is discharged from the tank. The discharged electrolyte is cleaned by a filtering device to produce clean electrolyte. The clean electrolyte is supplied to the electrolyte tank for next machining.</p>