FileDelete

Deletes one or more files.

FileDelete, FilePattern

 

Parameters

FilePattern

The name of a single file or a wildcard pattern such as C:\Temp\*.tmp. FilePattern is assumed to be in %A_WorkingDir% if an absolute path isn't specified.

To remove an entire folder, along with all its sub-folders and files, use FileRemoveDir.

 

ErrorLevel

ErrorLevel is set to 1 if there was a problem or 0 otherwise.

 

Remarks

None

 

Related

FileRecycle, FileRemoveDir, FileCopy, FileMove

 

Example

FileDelete, C:\temp files\*.tmp