DeleteFile Method

Delete specified file from local disk.

Visual C++: HRESULT DeleteFile(BSTR FileName, long* pVal) 
Visual Basic: DeleteFile(FileName As String) As long


Name of the file to be deleted.

Return Value

If this method succeeds, the return value is zero. If it fails, the return value is non-zero.


Additional function to delete temporary file.

See Also

SaveMail Method