The invention discloses an air-conditioner internal and external unit cleaning method. The method comprises the steps that an indoor
heat exchanger is controlled to enter a frosting mode; operation frequency of an air-conditioner, the opening degree of a throttling device and the rotating speed of an indoor fan are adjusted to enable evaporating temperature of the indoor
heat exchanger to be kept within the preset range and the surface of the indoor
heat exchanger to be frosted; frosting of the indoor heat exchanger lasts for time t1, later, frequency of a compressor is reduced, a four-way valve is controlled to be reversed, an outdoor heat exchanger enters a frosting mode, and meanwhile, the indoor heat exchanger is defrosted; the operation frequency of the air-conditioner, the opening degree of the throttling device and the rotating speed of an outdoor fan are adjusted, the
evaporation temperature of the outdoor heat exchanger is kept within the preset range, and the surface of the outdoor heat exchanger is frosted; frosting of the outdoor heat exchanger lasts for time t2, the compressor is controlled to be
shut down, and the indoor fan and the outdoor fan are kept starting until cleaning is completed. According to the air-conditioner internal and external unit cleaning method, the problem that in the prior art, the surface of the heat exchanger is cleaned through condensate water, and the effect is poor can be solved.