DeleteFile

Category: Files

Back to System Functions


Signature

DeleteFile(fileName As String)

Returns

Boolean

Description

Deletes the named file and returns True when the deletion succeeds.

If the file does not exist or cannot be removed, the result is False.

Example

If FileExists("save.tmp") Then DeleteFile("save.tmp") End If