@moondanceMay 16.2004 — #this is completely off the top of my head, but i'd try something like this:
-alter or create your database structure to include a field that holds an integer value of the number of times a pic has been viewed.
-everytime a picture is viewed/ downloaded, increment this number by one
-i think you can use cron to perform tasks on a webserver at timed intervals. i don't know much about this, but if you can use cron with php, write a script that retrieves all pictures with a NUM_TIMES_VIEWED (or whatever you called the db field) value that equals 0 from 6 months previous to now.
-then loop through this result set deleting each picture.