Deletes the specified file on the server. fileDelete throws an exception whenever a file doesn't exist.

fileDelete(file) → returns void

Argument Reference for the fileDelete function


Required: Yes
Pathname of the file to delete. If not an absolute path (starting with a drive letter and a colon, or a forward or backward slash), it is relative to the ColdFusion temporary directory, which is returned by the GetTempDirectory function.

Fork me on GitHub