DeleteFile
DeleteFile>path
Deletes the file/files/folder in path. Can also be used to delete folders.
path can be a variable. Wildcards can be used.
The outcome of the operation will be reported in variables CF_RESULT and CF_RESULT_CODE. If the operation was aborted or could not proceed CF_RESULT will be False. CF_RESULT_CODE will contain a numeric code returned by the operating system where 0 indicates success. For details of the codes that may be returned see the SHFileOperation function documentation at msdn.microsoft.com.
To enable operating system file operation animations set CF_ANIMATE to 1.
To have the file moved to the recycle bin instead of being fully deleted set CF_ALLOWUNDO to 1.
Abbreviation : Del
See also: CopyFile, MoveFile, IfFileExists
Example
DeleteFile>c:\temp\*.*