You can find the CFFiddle demo of this function and other file functions as part of a project that is shared with you.
Click the button below to launch CFFiddle.
To copy the project in your workspace in CFFiddle, follow the steps below:
Deletes the specified on-disk or in-memory file on the server.
FileDelete(filepath) |
FileClose, FileIsEOF, FileOpen, FileRead, FileReadLine, FileWrite, cffile
ColdFusion 8: Added this function.
Parameter |
Description |
|---|---|
filepath |
Pathname of the on-disk or in-memory 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. |
Use this function to free the memory used by an in-memory file. For more information on using in-memory files, see Working with in-memory files in the Developing ColdFusion Applications.
The following example deletes the file c:\productiondir\test1.txt before moving c:\testdir\test1.txt:
<h3>FileDelete Example</h3>
|
Sign in to your account