IAsyncEwsClient.DeleteFolderAsync
IAsyncEwsClient.DeleteFolderAsync method
Deletes the folder
public Task DeleteFolderAsync(string folderUri, bool deletePermanently = false, 
    CancellationToken cancellationToken = default)
| Parameter | Type | Description | 
|---|---|---|
| folderUri | String | The folder URI | 
| deletePermanently | Boolean | Indicates whether the folder should be deleted permanently or should be moved into DeletedItems folder | 
| cancellationToken | CancellationToken | The cancellation token. | 
Exceptions
| exception | condition | 
|---|---|
| AsposeArgumentException | folderUri is null or empty | 
See Also
- interface IAsyncEwsClient
 - namespace Aspose.Email.Clients.Exchange.WebService
 - assembly Aspose.Email