The battery trick works best with copper wires, as the electricity causes copper ions from the wire to end up in the water (don't ask me the tech stuff of this, I'm not smart enough to explain it properly). Obviously copper is not good for any inverterbrate, so remove all snails, shrimps etc.
Doing a water change next day will lower the dissolved copper level in the water.