OpenPop.NET POP3 Library Documentation

Pop3Client.DeleteMessage Method

Marks the message with the given message number as deleted.

The message 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.

public void DeleteMessage(
   int messageNumber


The number of the message to be deleted. This message may not already have been deleted.
The messageNumber must be inside the range [1, messageCount]


Exception Type Condition
PopServerException If the server did not accept the delete command

See Also

Pop3Client Class | OpenPop.Pop3 Namespace