I don't think there's really anyway to "remove' a pimple - at least not in the sense of completely getting rid of it immediately....a pimple is an infection in a hair follicle or pore. CO2 and solid state IR lasers are used to "resurface" the skin to get rid of old acne scars (and any other kinds of scars or blemishes + wrinkles) as they simply burn off the top layer or so of skin - all over, usually.
What you are referring to is probably some kind of technique to speed healing and dissolution of the infection. In that regard it is often known as "phototherapy". I don't think it involves burning up active pimples, though - that would be likely to just create another injury on top of the initial pore infection. Generally for active acne a doctor will prescribe (I know, I've had some minor battles with it in the past) antibiotics to help stop the infections, and possibly a chemical (like RX strength peroxide cream) to dry the pimples up. As mentioned, the laser is usually brought in to deal with acne scars.....