Delete Method

Official Content
This documentation is valid for:
Deletes, from the server, the last message that was received via the Receive method.  

Syntax

&DataType.Delete()

Type Returned:
Numeric

Description

MAPISession/OutlookSession: The deleted message will be moved to the “Deleted Items” folder.

POP3Session: The message is permanently deleted, and this is performed when the Logout is executed.

If the Receive method was not called, or if the last call did not return a message (for instance, due to an error), the call to Delete will result in Error 26.  

Note:
This method returns an error code, so it can be called as a function (&Err = &DataType.Delete()).

Scope

Extended Data Types: MAPISession, OutlookSession, POP3Session
Languages: .NET, Java, Ruby, Visual Basic, Visual FoxPro

See Also

Receive Method
Send Method
MAPISession Data Type
OutlookSession Data Type
POP3Session Data Type