A device for a combined cleaning of pump-and-compressor tubing from asphalt-resin-paraffin deposits, comprising a ground-based ultrasonic generator, a logging hoist, a downhole ultrasonic scraper connected by a geophysical cable to the ground-based ultrasonic generator,
- wherein the downhole ultrasonic scraper contains a converter of electrical oscillations into mechanical oscillations, an oscillation transformer connected to said converter of electrical oscillations into mechanical oscillations, an ultrasonic transducer, connected to said oscillation transformer, wherein the converter of electric oscillations is mounted inside a protective casing made with holes, and a temperature sensor is placed under said protective casing.