public virtual async Task DeleteAsync()

in src/Amazon.AspNetCore.Identity.Cognito/CognitoRoleStore.cs [68:83]


        public virtual async Task<IdentityResult> DeleteAsync(TRole role, CancellationToken cancellationToken)
        {
            cancellationToken.ThrowIfCancellationRequested();
            if (role == null)
            {
                throw new ArgumentNullException(nameof(role));
            }
            await _cognitoClient.DeleteGroupAsync(new DeleteGroupRequest()
            {
                GroupName = role.Name,
                UserPoolId = _pool.PoolID

            }, cancellationToken).ConfigureAwait(false);

            return IdentityResult.Success;
        }