1. A method for performing a maintenance operation for cleaning a printing unit of an image forming apparatus, the method comprising the steps of: (a) recording printing work information when a command for the maintenance operation is entered as usage pattern information; (b) counting and recording the printing work information of printing data upon input of a printing command; and (c) comparing the usage pattern information with the counted printing work information and, when they correspond to each other, performing the maintenance operation.