If you want to delete image files under certain conditions, you can automate this task by using FORMS to create a batch file that deletes the files.
The way you make FORMS create the batch file is by using an archive transaction description to send specifically-tailored output to a separate file when you transfer the processed forms. The separate file is a batch file that you execute after transfer.
Read through the instructions first. (As this is a rather advanced solution, the instructions assume that you have a working knowledge of FORMS.) Then read "How it works" and other information about this solution below the instructions.