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
accountMailAccountIdThe account, by its generated identifier.
folderAliasMailFolderAliasThe folder.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<MailFolderActOutcome>
The folder as it stood at its deletion, or the refusal.