in tools/code/common/Group.cs [188:197]
public static async ValueTask Delete(this GroupUri uri, HttpPipeline pipeline, CancellationToken cancellationToken)
{
var either = await pipeline.TryDeleteResource(uri.ToUri(), waitForCompletion: true, cancellationToken);
// Don't throw if we get an error saying system groups cannot be deleted.
_ = either.IfLeft(response => response.Status == (int)HttpStatusCode.MethodNotAllowed
&& response.Content.ToString().Contains("System entity cannot be deleted", StringComparison.OrdinalIgnoreCase)
? Unit.Default
: throw response.ToHttpRequestException(uri.ToUri()));
}