The invention relates to a method for treating a caffeine containing object, in particular coffee beans or tea leaves, which method comprises the steps of:- providing an electrical coil and creating an electrical field by bringing the coil in resonance with a direct current having an alternating current component- positioning a container with a caffeine containing object, in particular coffee beans or tea leaves, in the electrical field of the coilwherein the alternating current component has a frequency in the range of 243kHz - 253kHz and wherein the direct current is in the range of 55% - 100% of the amplitude of the alternating current component.