An inefficient but easy way to do it is to delete the file when the connection closes
Seems to be the perfect solution to my problem, thanks a lot. Why do you think that this is inefficient ? The example in the aolserver documentation is about the removal of a temp file as well.