A head cleaning apparatus comprising: a cleaning unit that includes a cleaning member; and a determination unit, wherein the head cleaning apparatus is configured to perform a cleaning operation of cleaning a nozzle surface of an inkjet head with the cleaning member, the nozzle surface having a water-repellent film, wherein the cleaning operation is performed either in a rub mode or a stamp mode, wherein in the rub mode, the cleaning member and the nozzle surface are brought into contact and relatively slid on each other, wherein in the stamp mode, the cleaning member and the nozzle surface are brought into contact and kept still, wherein the determination unit is configured to determine which mode is performed, the rub mode or the stamp mode, in the cleaning operation based on a predetermined condition, characterized in that it is based on an amount of ink adhered to the nozzle surface, wherein the determination unit determines the stamp mode in response to that the amount of ink being greater than a predetermined amount, and determines the rub mode in response to that the amount of ink being equal to or less than the predetermined amount, wherein when the inkjet head is installed with an angle of installation of the inkjet head with respect to a horizontal plane and the predetermined condition being whether the installation angle of the inkjet head exceeds a predetermined angle or not, below that angle, there is a condition of having a large amount of ink adhering to the nozzle surface, and above that angle, there is not a condition of having a large amount of ink adhering to the nozzle surface. a cleaning unit that includes a cleaning member; and a determination unit, wherein the head cleaning apparatus is configured to perform a cleaning operation of cleaning a nozzle surface of an inkjet head with the cleaning member, the nozzle surface having a water-repellent film, wherein the cleaning operation is performed either in a rub mode or a stamp mode, wherein in the rub mode, the cleaning member and the nozzle surface are brought into contact and relatively slid on each other, wherein in the stamp mode, the cleaning member and the nozzle surface are brought into contact and kept still, wherein the determination unit is configured to determine which mode is performed, the rub mode or the stamp mode, in the cleaning operation based on a predetermined condition, characterized in that it is based on an amount of ink adhered to the nozzle surface, wherein the determination unit determines the stamp mode in response to that the amount of ink being greater than a predetermined amount, and determines the rub mode in response to that the amount of ink being equal to or less than the predetermined amount, wherein when the inkjet head is installed with an angle of installation of the inkjet head with respect to a horizontal plane and the predetermined condition being whether the installation angle of the inkjet head exceeds a predetermined angle or not, below that angle, there is a condition of having a large amount of ink adhering to the nozzle surface, and above that angle, there is not a condition of having a large amount of ink adhering to the nozzle surface. wherein the cleaning operation is performed either in a rub mode or a stamp mode, wherein in the rub mode, the cleaning member and the nozzle surface are brought into contact and relatively slid on each other, wherein in the stamp mode, the cleaning member and the nozzle surface are brought into contact and kept still, wherein the determination unit is configured to determine which mode is performed, the rub mode or the stamp mode, in the cleaning operation based on a predetermined condition, characterized in that it is based on an amount of ink adhered to the nozzle surface, wherein the determination unit determines the stamp mode in response to that the amount of ink being greater than a predetermined amount, and determines the rub mode in response to that the amount of ink being equal to or less than the predetermined amount, wherein when the inkjet head is installed with an angle of installation of the inkjet head with respect to a horizontal plane and the predetermined condition being whether the installation angle of the inkjet head exceeds a predetermined angle or not, below that angle, there is a condition of having a large amount of ink adhering to the nozzle surface, and above that angle, there is not a condition of having a large amount of ink adhering to the nozzle surface.