Hi, many thanks for taking the time to reply to my post. If I'm honest, I very new to PHP and XML, so I'm not sure where the problem is. I don't receive any specific eror message. I know that the file is there, I suspect that it's not reading it. I've added an extract of my xml file in my original post. In respect of the security, that's dealt with by the form which initiates the delete sequence. A user can only see their own images. Kind regards