thanks,
i'm having probs with the unlink - it doesn't seem to remove the file?
the chmod is 777 for the "uploads" directory? the array is working becasue the echo is printing the files choosen to delete, what have i missed?
exmaple filename is "order.pdf" - is this correct?
foreach ($delete as $filename)
{
unlink(uploads/$filename);
echo "$filename - deleted";
}
gareth