Table of Contents

Method DeleteGroupAsync

Namespace
MailFathom.Application.Access.Grants
Assembly
MailFathom.Application.dll

DeleteGroupAsync(Guid, CancellationToken)

Removes a group nothing is assigned to, and its memberships with it.

public Task<GrantWriteResult> DeleteGroupAsync(Guid groupId, CancellationToken cancellationToken)

Parameters

groupId Guid

The group.

cancellationToken CancellationToken

Cancels the write.

Returns

Task<GrantWriteResult>

What the act did, carrying how many assignments refused it; UnknownGroup also for a group outside the caller's scope.

Exceptions

PrincipalNotAuthorizedException

Thrown when the caller holds AdminRolesWrite at no scope.