A computer-implemented method for managing the flight of a drone comprising a physical treatment device, the method comprises the steps repeated over time of measuring the distance between the drone and an object present in the environment of the drone; adjusting the distance from the drone to the object according to predefined internal parameters; and performing a physical treatment on the object from the drone. Developments describe the management of distances to objects, surface tracking, object recognition, the installation of beacons in the environment, the use of on-board or remotely accessed sensors (e.g. position and contact sensors, cameras, motion detectors) and various types of treatment (e.g. cleaning, dusting, sterilization). Both software aspects (e.g. learning, central or distributed logic, autonomy, cooperation with floor robots) and system aspects (addition of a fan, brush, duster or germicidal lamp) are described.