Click or drag to resize
MimeKit

IMailFolderExpunge(IListUniqueId, CancellationToken) Method

Expunge the specified uids, permanently removing them from the folder.

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
void Expunge(
	IList<UniqueId> uids,
	CancellationToken cancellationToken = default
)

Parameters

uids  IListUniqueId
The message uids.
cancellationToken  CancellationToken  (Optional)
The cancellation token.
Remarks

Expunges the specified uids, permanently removing them from the folder.

Note  Note
Normally, an MessageExpunged event will be emitted for each message that is expunged. However, if the mail store supports the quick resynchronization feature and it has been enabled via the EnableQuickResync(CancellationToken) method, then the MessagesVanished event will be emitted rather than the MessageExpunged event.
See Also