DeleteFile Method


Delete specified file from local disk.

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

Parameters

FileName
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.

Remarks

Additional function to delete temporary file.

See Also

SaveMail Method