Simple spark eroder circuit. The coil on the relay would be the coil on a solenoid which would pull the electrode up while energised and drop it when capacitor is charged. When the electrode contacts work the cap will discharge and the resulting sparks will blow away a bit of the work piece.