OpenPop.NET POP3 Library Documentation

Pop3Client.DeleteAllMessages Method

Marks all messages as deleted.

The messages will not be deleted until a QUIT command is sent to the server.
This is done when you call Disconnect or when the Pop3Client is Disposed.
The method assumes that no prior message has been marked as deleted, and is not valid to call if this is wrong.

public void DeleteAllMessages();


Exception Type Condition
PopServerException If the server did not accept one of the delete commands. All prior marked messages will still be marked.

See Also

Pop3Client Class | OpenPop.Pop3 Namespace