CFFILE ACTION="Delete"

The CFFILE tag can be used to delete a file on the server.

Syntax

<CFFILE ACTION="Delete"
    FILE="full_path_name">

FILE

Required. The full path name of the file to delete.

Example

The following example permanently deletes the specified file:

<CFFILE ACTION="Delete"
    FILE="c:\files\upload\#Variables.DeleteFileName#">