I tried that, but it's not working. There's a "close file" thingy that gets put in before that tries to open the file and returns the error "can't open file" -- probably because the file is a PDF... should the file-type be causing a problem with the unlink() function?
Here's what I've got to delete the file:
$delFile = "docs/".$rowfile;
$fh = fopen($delFile, 'w') or die("can't open file");
...and it just returns the "can't open file" error.