The maintenance mechanism may include a cap which covers, in a covering position, the nozzle surface of the recording head, a pump including an inlet and an outlet, a tube extending from the outlet, and a waste ink storage detachably attached to the tube.