The invention discloses a self-cleaning method for a fully automatic washing machine, comprising five steps of detecting, judging, displaying, cleaning and discharging water. A device for implementing the method comprises a washing machine housing, a dehydrating barrel, a water holding barrel, an electric motor, a water inlet valve, a water discharging valve, a water discharging pipe and a computer control panel, wherein the computer panel comprises a computer memory chip, a push button switch and a display, the inner wall of the water holding barrel is provided with a photoelectric sensor, the inner wall and the bottom of the water holding barrel are provided with a plurality of water injection holes, each water injection hole is communicated with the water inlet valve through a flexible pipe, the computer control panel also comprises a buzzer, a detecting switch and a cleaning switch, and the photoelectric sensor and the water inlet valve are in electric connection with the computer control panel. The self-cleaning method of the fully automatic washing machine and the application of the device thoroughly remove the dirt and line cuttings inside the washing machine.