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
groupIdGuidThe group.
cancellationTokenCancellationTokenCancels 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.