A non-transitory computer-readable storage medium storing a control program causing a computer to execute a control method for an information processing apparatus that is communicable with an image processing apparatus, the control method comprising:
- a first transmission step of transmitting identification information about the information processing apparatus to the image processing apparatus;
- a reception step of receiving image data that is generated by scanning a document by the image processing apparatus and is transmitted from the image processing apparatus using the identification information;
- a second transmission step of transmitting the image data received in the reception step to a predetermined application;
- a setting step of setting as to whether the image data received in the reception step is transmitted in the second transmission step to the predetermined application;
- and
- a third transmission step of transmitting a deletion instruction to the image processing apparatus,
- wherein in the setting step, it is set, based on transmission of the identification information in the first transmission step, so as to transmit the image data received in the reception step to the predetermined application,
- wherein the deletion instruction instructs deletion of information about the information processing apparatus as a transmission destination of image data transmitted from the image processing apparatus, and
- wherein in the setting step, it is set so as to stop transmitting the image data received in the reception step to the predetermined application at a timing at which the deletion instruction is transmitted in the third transmission step to the image processing apparatus.