Flushing device comprises a flushing unit (1) with a flushing valve (5), an actuating element (6) for triggering the flushing process, and a disinfection unit (2) for the disinfection of the flushing water, where flushing water is fed to the urinal or water closet during flushing. The disinfection unit comprises an electrochemical cell (9) for producing an oxidizing agent from the flushing water, which is disposed in the flushing water and a mixing unit for mixing the flushing water with the oxidizing agent. Independent claims are also included for: (1) Urinal or toilet comprising a flushing device and (2) operating a flushing device comprising feeding the flushing water before into urinal or toilet through disinfection unit, and after actuation, the flushing unit, the electrochemical cell is supplied with electrical energy to prepare oxidizing agent during the flow rate of the flushing water.