An image processing apparatus prevents a panoramic image or a sequence of
consecutive images from being partially lost due to the accidental
erasing of an image composing the panoramic image or the sequence of
consecutive images. When the user selects an image to be erased from a
memory, additional information about the selected image is read and then
it is determined whether or not the selected image is a part of a
panoramic image or a sequence of consecutive images with reference to the
additional information. If no, the selected image is erased. If yes, a
display indicates that the selected image is a part of the panoramic
image or the sequence of consecutive images in order to request the user
to determine whether to collectively erase all the image data relating to
the panoramic image or the sequence of consecutive images including the
selected image. Then, all the image data are collectively erased if the
user determines so.