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

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

FILE

Required. The file to delete (with directory location).

Example

The following example permanently deletes the specified file:

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