Of course, thanks John. One of those moments of looking too closely at the problem at 2am instead of stepping back and thinking of other angles.
I will start another post re why Im uploading ...
I uploaded a Flash gallery as a test which had lots of subdirectories, and when I tried to delete it I found I had to go through each level and clean out all files of every dir before deleting the dir ...