A very simple approach would be to simply reverse the polarity of the electrodes. That way the deposition reaction would be reversed. The said technique is often employed for electro-refining of various precious and semi-precious metals.
I hope it helps though its a very simple approach.