cffile action = "delete"

Description

Deletes a file on the server.

Syntax

<cffile 
  action = "delete"
  file = "full_path_name"> 

See also

cfdirectory

Attributes

Attribute Req/Opt Default Description
action
Required
 
Type of file manipulation that the tag performs.
file
Required
 
Absolute pathname of file on web server.
On Windows, use backward slashes; on UNIX, use forward slashes.

Example

The following example deletes the specified file:

<cffile action = "delete"
  file = "c:\files\upload\#Variables.DeleteFileName#">

Comments