In an inkjet printing apparatus which includes a printhead that discharges ink and an ink tank detachably attached to the printhead, and executes printing by using the printhead that discharges the ink supplied from the ink tank, an ink tank detection section detects the presence/absence of the ink tank. On the basis of the detection result, a control circuit inhibits the cleaning operation of the printhead.