Not really. I would start by debugging the script to verify that the logFile variable contains the correct filename. Then, perhaps use Process Explorer's [1] find handle functionality to see if something has the file open, preventing it from being deleted.
[1]
http://www.sysinternals.com/Utilitie...sExplorer.html