Separating of deposited metals from the cathode