Depending on whether you're talking about the date it was created or the date it was last modified, take a look at filectime() (www.php.net/filectime) and fileatime() (www.php.net/fileatime). Use those to determine the date, then use unlink() to delete the file. Alternately, you can use system calls (www.php.net/exec) to do it all on the UNIX end.