DeleteFile

Public Function DeleteFile(ByVal Filename As String) As Boolean

Deletes a file from the file system.

Dim lFileDeleted As Boolean = DeleteFile("C:\Temp\MyFile.txt")

See also: