Table of Contents

Method DeleteAsync

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

DeleteAsync(Guid, CancellationToken)

Removes an organization that has neither members nor mail accounts.

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

Parameters

organizationId Guid

The organization.

cancellationToken CancellationToken

Cancels the write.

Returns

Task<OrganizationWriteResult>

Written, UnknownOrganization, StillHasMembers carrying how many members and accounts, or StillHoldsMailAccounts carrying how many accounts.