IAsyncEwsClient.DeleteFolderAsync

IAsyncEwsClient.DeleteFolderAsync method

Deletes the folder

public Task DeleteFolderAsync(string folderUri, bool deletePermanently = false, 
    CancellationToken cancellationToken = default)
ParameterTypeDescription
folderUriStringThe folder URI
deletePermanentlyBooleanIndicates whether the folder should be deleted permanently or should be moved into DeletedItems folder
cancellationTokenCancellationTokenThe cancellation token.

Exceptions

exceptioncondition
AsposeArgumentExceptionfolderUri is null or empty

See Also