ImapClientDeleteMessage Method (String, Boolean) |
Deletes the specified message.
Namespace:
GemBox.Email.Imap
Assembly:
GemBox.Email (in GemBox.Email.dll) Version: 15.0.35.1026
Syntax public void DeleteMessage(
string uid,
bool expunge
)
Public Sub DeleteMessage (
uid As String,
expunge As Boolean
)
Parameters
- uid
- Type: SystemString
The message id. - expunge
- Type: SystemBoolean
True to delete message immediately from the server; otherwise, false.
Exceptions Remarks
Setting expunge to true will specified delete message from the server and that message cannot be undeleted. By setting expunge to false, specified message will just be marked for deletion,
but it won't be removed from the server until
Expunge is called.
See Also