The device according to the invention is used to clean medical instruments having at least one instrument cavity and at least two openings, wherein the device has a first fastening module for detachably fastening the medical instrument and a second fastening module for detachably fastening a first container for receiving liquid (insert in drawing) and/or air (insert in drawing), wherein the device comprises a cleaning device cavity which is designed such that when the medical instrument and container are fastened, the liquid and/or air can be flushed from the interior of the container through the cleaning device cavity into the instrument cavity. According to the invention, the device has a first and a second operating position, wherein, in the first operating position, the liquid can be flushed out of the container through the cleaning device cavity into the instrument cavity and, in the second operating position, air can be flushed out of the environment through the container and the cleaning device cavity into the instrument cavity.