Deletes a file on the server.
<cffile
action = "delete"
file = "full pathname">
attributeCollection attribute
whose value is a structure. Specify the structure name in the attributeCollection attribute
and use the tag’s attribute names as structure keys.Attribute |
Req/Opt |
Default |
Description |
|---|---|---|---|
|
Required |
Type of file manipulation that the tag performs. |
|
|
Required |
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 |
The following example deletes the specified file:
<cffile action = "delete"
file = "c:\files\upload\#Variables.DeleteFileName#">