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

Parameter:

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