Table of Contents

Method DeleteAsync

Namespace
MailFathom.Application.Access.Organizations
Assembly
MailFathom.Application.dll

DeleteAsync(Guid, CancellationToken)

Removes an organization, which is refused while it still has members or holds mail accounts.

public Task<OrganizationWriteResult> DeleteAsync(Guid organizationId, CancellationToken cancellationToken)

Parameters

organizationId Guid

The organization.

cancellationToken CancellationToken

Cancels the write.

Returns

Task<OrganizationWriteResult>

What the act did, carrying how many members and mail accounts refused it.

Exceptions

PrincipalNotAuthorizedException

Thrown when the caller does not hold AdminConfigurationWrite.