Method of cleaning containers, in particular bottles of glass or plastics, in a cleaning module with a cleaning machine where at least one cleaning medium is allowed to act on the containers transported through the cleaning machine, and with an inspection unit, including determining at least one control parameter with respect to the degree of soiling of the cleaned bottles, detecting the degree of soiling of the cleaned bottles, evaluating the detected degree of soiling of the cleaned bottles in view of the at least one control parameter with respect to the degree of soiling, returning bottles evaluated to exhibit an excessive degree of soiling to the inlet of the cleaning machine, and automatically controlling the cleaning parameters of the cleaning machine if the number of returned bottles, based on the number of cleaned bottles, exceeds a predetermined target value or target range.