The invention discloses a power cabinet with a dust removing function, which solves the problems that the dust inside the product is difficult to clean, the induction and management of the line is troublesome and the fixing is inconvenient. The power cabinet comprises a cabinet body, one side of the bottom of the cabinet body is provided with a dust suction port, a dust collector is connected to the end of the dust suction port, a dust outlet is arranged on a side away from the dust suction port of the dust collector, one side of the dust outlet is connected with a water tank, the surface of the water tank is embedded with an indicator light, one side of the indicator light is provided with a PLC controller, a liquid level sensor is installed on the side wall inside the water tank, one side away from the dust collector of the water tank is provided with a water outlet, a valve is installed inside the water outlet, the output end of the liquid level senor is electrically connected to aninput end of the PLC controller, the output end of the PLC controller is electrically connected to the input end of the indicator light, a fixing frame is installed inside the cabinet body, the innerside of the fixing frame is provided with a fixing clamp board, the surface of the fixing clamp board is provided with a clamp groove, the outer side of the fixing frame is provided with a mobile clamp board, and the inner side of the mobile clamp board is provided with a clamp block.