A method and a system for destruction of an undesirable formation in a mammalian body are described. The invention is based on inserting a probe into mammalian body said probe is electrically connectable to a control unit and upon bringing the probe in physical contact with the formation supplying pulses of energy from the control unit to the probe in order to destroy the formation. The invention further comprises counting amount of pulses being supplied to the probe and establishing a remaining service life of the probe by subtracting the amount of pulses being supplied to the probe from an amount of pulses corresponding to initial service life of the probe. The treatment session is automatically terminates as soon as amount of pulses being supplied to the probe approaches at least a fraction of the established remaining service life of the probe. The established remaining service life of the probe is stored for new treatment session. Delivery of pulses automatically terminates when the remaining service life is exhausted and use of such probe becomes impossible.