You can delete files with
unlink(). But be careful. Make sure the file name passed in the URL has an image extension, and make sure the user isn't able to insert something like
?delete=../pics.php. Use
basename() on the value which you receive in the URL.
This should work. (Untested)