An image forming apparatus includes a toner image forming device, a toner
image conveyer unit, a control device, and a moving device. The toner
image conveyer unit includes a toner image conveyer, a supporting member
that detachably supports the toner image conveyer, and a detecting member
that detects a toner image on the toner image conveyer. The toner image
conveyer unit is movable between a first position where the toner image
is formed on the toner image conveyer and a second position where the
toner image conveyer is attached to or detached from the supporting
member. The moving device moves the detecting member located at a
position to detect the toner image, away from the toner image conveyer
supported by the supporting member, in conjunction with an operation to
move the toner image conveyer unit from the first position to the second
position.