Table of Contents

Method DeleteAsync

Namespace
MailFathom.Application.Folders
Assembly
MailFathom.Application.dll

DeleteAsync(MailAccountId, MailFolderAlias, CancellationToken)

Deletes a folder, on the mail server as well where the account's setting says so.

public Task<MailFolderActOutcome> DeleteAsync(MailAccountId account, MailFolderAlias folderAlias, CancellationToken cancellationToken)

Parameters

account MailAccountId

The account, by its generated identifier.

folderAlias MailFolderAlias

The folder.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<MailFolderActOutcome>

The folder as it stood at its deletion, or the refusal.