Skip to main content
Participating Frequently
November 6, 2006
Question

ColdFusion could not delete the file [file path] fo

  • November 6, 2006
  • 1 reply
  • 662 views
Using the <cffile> tag I write a file to the server and display the outputed file in my browser. I then try to delete the file. I get the error message ColdFusion could not delete the file [file path] for an unknown reason. If I wait 60 seconds I can successfully delete the file. Using the freeware prodram Unlocker I know that it is a jrun.exe process that is preventing the deletion of the file for the 1 minute after the file has been created.

Is there a known workaround or fix for this issue?
    This topic has been closed for replies.

    1 reply

    Inspiring
    November 7, 2006
    Are you using CFlock when you write or create the file? If so that will prevent the file from being deleted until the lock is released.
    jallredAuthor
    Participating Frequently
    November 8, 2006
    Thank you for your reply. I am not using cflock.