DeleteFile.. doesn't

BlitzMax Forums/BlitzMax Programming/DeleteFile.. doesn't

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, head over to the Blitz3D+ forums.

i've had a problem when even after closing a file off. it still takes time for windows to "create" the file.
In the meantime you already deleted a file thats not there, and then the file gets created.

try something like
while not deletefile(tempfile)
delay 100
wend