EwsDeleteFolder Method
Deletes a folder with the specified ID.

Namespace: MailBee.EwsMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
public bool DeleteFolder(
	FolderId id
)

Parameters

id
Type: FolderId
The ID of the folder to delete. Null reference (Nothing in Visual Basic) not allowed.

Return Value

Type: Boolean
true if succeeded; otherwise, false.
Exceptions
ExceptionCondition
MailBeeExceptionAn error occurred and ThrowExceptions is true.
Remarks

To delete a folder by its name, first locate its ID with FindFolderIdByShortName(FolderId, String) or FindFolderIdByFullName(String) method.

To control how items are deleted (e.g. to Trash or permanently), use DeleteMethod property.

This method can delete non-empty folders.

See Also