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

 

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.

Example

The following example deletes the specified file:

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

ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | KnowledgeBase | Bug Reporting

Version 7

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/coldfusion/7/htmldocs/00000248.htm