Pop3DeleteMessages Method
Flags all the messages in the inbox for deletion from the server.

Namespace: MailBee.Pop3Mail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.3.0 build 647 for .NET 4.5
public bool DeleteMessages()

Return Value

Type: Boolean
true if the messages have been flagged for deletion or the inbox is empty; otherwise, false.
MailBeeExceptionAn error occurred and ThrowExceptions is true.
If the POP3 server supports pipelining, this method will flag all the messages in a single network operation, which greatly increases performance and reduces network traffic.
Note Note
Messages flagged for deletion are actually removed from the server on Disconnect method call. Until this moment, the developer can remove the deletion status for all messages flagged as deleted by calling ResetDeletes method.
This sample deletes all the messages in the inbox.
// To use the code below, import MailBee namespaces at the top of your code.
using MailBee;
using MailBee.Pop3Mail;

// The actual code (put it into a method of your class).
Pop3 pop = new Pop3();
pop.Login("jdoe", "secret");
See Also