Click or drag to resize

ImapDeleteFolder Method (FolderInfo)

Permanently removes a folder (mailbox) with the given name.

Namespace:  Limilabs.Client.IMAP
Assembly:  Mail (in Mail.dll) Version: 3.0.23341.1754
Syntax
public void DeleteFolder(
	FolderInfo folder
)

Parameters

folder
Type: Limilabs.Client.IMAPFolderInfo
Folder name.
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". The DELETE command MUST NOT remove inferior hierarchical names. For example, if a mailbox "foo" has an inferior "foo.bar" (assuming "." is the hierarchy delimiter character), removing "foo" MUST NOT remove "foo.bar". It is an error to attempt to delete a name that has inferior hierarchical names and also has the \Noselect mailbox name attribute. It is permitted to delete a name that has inferior hierarchical names and does not have the \Noselect mailbox name attribute. In this case, all messages in that mailbox are removed, and the name will acquire the \Noselect mailbox name attribute.
See Also