A dishwasher comprising a washing cabin, - a dosing unit having a detergent receptacle wherein liquid/gel detergent can be filled and a dosing mechanism that can dose the required amount of liquid/gel detergent as per the selected program from the detergent receptacle into the washing cabin, and - a cleaning system that implements one or more than one detergent washing cycle enabling the detergent residues left in the detergent receptacle from the previous use to be washed and that enables the detergent receptacle and the dosing mechanism to be washed, characterized in that the cleaning system pumps during the detergent washing cycle clean water from the water mains or wash water from a sump disposed at the bottom of the washing cabin by means of a circulation pump and through one or more than one valve (7, 8) to the detergent receptacle, and wherein the dishwasher further comprises - a detergent level sensor that is disposed in the dosing unit, that detects the liquid/gel detergent level in the detergent receptacle and generates signals relating to the detergent level and - a control unit that provides the controlling of the cleaning system and the dosing unit, that determines whether or not the dosing unit is suitable for use depending on the detergent level signal received from the detergent level sensor and that starts the detergent washing cycle by activating the cleaning system at the end of the main washing step following a liquid/gel detergent depleted signal of the detergent level sensor and wherein said cleaning system comprises said circulation pump, said first valve directing the wash water, said second valve for directing the detergent washing water, a first pipe that delivers the wash water to the detergent receptacle, a check valve, detergent receptacle washing nozzles and ducts and a discharge valve and wherein the control unit enables the water in the sump to be directed to the detergent receptacle by the circulation pump via the first valve, the second valve, the first pipe, the check valve and the detergent receptacle washing nozzles and ducts and wherein the control unit stops the circulation pump for discharging the wash water collected in the detergent receptacle, opens the discharge valve wherein the water collected in the detergent receptacle is directed again into the sump with the effect of gravity. - a dosing unit having a detergent receptacle wherein liquid/gel detergent can be filled and a dosing mechanism that can dose the required amount of liquid/gel detergent as per the selected program from the detergent receptacle into the washing cabin, and - a cleaning system that implements one or more than one detergent washing cycle enabling the detergent residues left in the detergent receptacle from the previous use to be washed and that enables the detergent receptacle and the dosing mechanism to be washed, characterized in that the cleaning system pumps during the detergent washing cycle clean water from the water mains or wash water from a sump disposed at the bottom of the washing cabin by means of a circulation pump and through one or more than one valve (7, 8) to the detergent receptacle, and wherein the dishwasher further comprises - a detergent level sensor that is disposed in the dosing unit, that detects the liquid/gel detergent level in the detergent receptacle and generates signals relating to the detergent level and - a control unit that provides the controlling of the cleaning system and the dosing unit, that determines whether or not the dosing unit is suitable for use depending on the detergent level signal received from the detergent level sensor and that starts the detergent washing cycle by activating the cleaning system at the end of the main washing step following a liquid/gel detergent depleted signal of the detergent level sensor and wherein said cleaning system comprises said circulation pump, said first valve directing the wash water, said second valve for directing the detergent washing water, a first pipe that delivers the wash water to the detergent receptacle, a check valve, detergent receptacle washing nozzles and ducts and a discharge valve and wherein the control unit enables the water in the sump to be directed to the detergent receptacle by the circulation pump via the first valve, the second valve, the first pipe, the check valve and the detergent receptacle washing nozzles and ducts and wherein the control unit stops the circulation pump for discharging the wash water collected in the detergent receptacle, opens the discharge valve wherein the water collected in the detergent receptacle is directed again into the sump with the effect of gravity.