An apparatus and method are provided, in which and electroporation electrode is configured for example to apply an alternating electric field through liquid dispensed from the apparatus to a surface or volume being treated and thereby cause electroporation of microorganisms in contact with the liquid. The liquid may be suspended from the surface by charged nanobubbles and/or another mechanism to enhance application of the electric field to the microorganisms.