Function Reference

FileDelete

Delete one or more files.

FileDelete ( "path" )

 

Parameters

Path The path of the file(s) to delete. Wildcards are supported.

 

Return Value

Success: Return 1.
Failure: Returns 0 if files are not deleted or do not exist.

 

Remarks

Note: If the "path" passed to FileDelete is a folder, the files therein will be deleted just as if you had used the *.* mask.
See FileFindFirstFile for a discussion of wildcards.

Some file attributes can make the deletion impossible.

 

Related

FileCopy, FileMove, FileRecycle, DirRemove, FileRecycleEmpty

 

Example


FileDelete("D:\*.tmp")