User Guide
116 Chapter 2: ColdFusion Tags
cffile action = "delete"
Description
Deletes a file on the server.
Syntax
<cffile
action = "delete"
file = "full_path_name">
See also
cfdirectory
Attributes
Example
The following example deletes the specified file:
<cffile action = "delete"
file = "c:\files\upload\#Variables.DeleteFileName#">
Attribute Req/Opt Default Description
action Required Type of file manipulation that the tag performs.
file Required Pathname of the file to delete.
If not an absolute path (starting a 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.