An image forming apparatus includes a first memory for storing image data, a second memory for storing image forming conditions, an image output unit for outputting the image data stored in the first memory under the image forming conditions stored in the second memory, and command means for generating a command of discarding the image data being output from the image output unit. The apparatus also has a controller. If a command of discarding the image data is generated by the command means, the controller discards the image data stored in the first memory, while it maintains the associated image forming conditions stored in the second memory.