Click or drag to resize

ImapDeleteFolderRecursivelyAsync(String, CancellationToken) Method

Permanently removes all sub folders and folder (mailbox) with the given name.

Namespace: Limilabs.Client.IMAP
Assembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntax
public void DeleteFolderRecursivelyAsync(
	string folder,
	CancellationToken cancel = default
)

Parameters

folder  String
Folder name to remove.
cancel  CancellationToken  (Optional)
A cancellation token that can be used to signal the asynchronous operation should be canceled.

Return Value

A task that represents the asynchronous IMAP folder delete operation.
Remarks
IMAP servers may differ in the separator character used in folder hierarchy paths. Common separator chars are '.' and '/'. For example: "Inbox/Folder" or "Inbox.Folder".
See Also