A cleaning device of a charging roller has: a cleaning member contacting a
charging roller which charges an image carrier which carries an image,
and cleaning a surface of the charging roller; and a holding structure
holding the cleaning member such that the cleaning member is movable at
least between a first position and a second position along a peripheral
direction of the charging roller. The holding structure holds the
cleaning member such that an amount of compression of the cleaning member
at a contacting portion of the charging roller and the cleaning member is
greater at the second position than at the first position.