A rotatable locking lever is provided in a slider and is movable in a direction intersecting a moving direction of a carriage, and the slider is made to stop in a wiping position by the locking lever being locked by an apparatus main body side when the slider moves to a wiping position. It is possible to regulate an approach amount of a wiper to a recording head with a high degree of accuracy even if horizontal portions are not provided on cam surfaces for restricting a position of the slider mounting the wiper.