Deleting a file

You can delete a specified file on the device as shown by the following example:

<cfset removeresponse=cfclient.file.remove(“myNewFile.txt”)>

Method summary

remove(fileName) - deletes file specified by filename

  • returns - true for successful removal
  • params
    • filename – Absolute or relative path of the file to be deleted (including the file name)

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy