Hunny Software Library Reference

Imap4Client.Expunge Method 

Sends an EXPUNGE command.

[Visual Basic]
Public Sub Expunge()
[C#]
public void Expunge();

Remarks

An EXPUNGE command causes the server to permanently delete the messages in the currently selected mailbox that have the \Deleted flag set. The server responds with an EXPUNGE response for each message deleted.

Exceptions

Exception TypeCondition
ExceptionIf a network or protocol error occurs.

See Also

Imap4Client Class | Hunny.Mail Namespace | ExpungeResponse | EXPUNGE command in the IMAP4 specification