class ZMSImpl implements Authorizer, KeyStore, ZMSHandler {

    @Override
    public void deleteGroup(ResourceContext ctx, String domainName, String groupName, String auditRef) {

        final String caller = ctx.getApiName();
        logPrincipal(ctx);

        if (readOnlyMode) {
            throw ZMSUtils.requestError(SERVER_READ_ONLY_MESSAGE, caller);
        }

        validateRequest(ctx.request(), caller);

        validate(domainName, TYPE_DOMAIN_NAME, caller);
        validate(groupName, TYPE_ENTITY_NAME, caller);

        // for consistent handling of all requests, we're going to convert
        // all incoming object values into lower case (e.g. domain, role,
        // policy, service, etc name)

        domainName = domainName.toLowerCase();
        setRequestDomain(ctx, domainName);
        groupName = groupName.toLowerCase();

        // verify that request is properly authenticated for this request

        verifyAuthorizedServiceOperation(((RsrcCtxWrapper) ctx).principal().getAuthorizedService(), caller);

        // before deleting a group make sure the group is not included
        // in any roles in which case those need to be removed first
        // to maintain good consistency (we're going t ignore any
        // exceptions - we get 404s if the principal is not part of
        // any roles, for example

        groupMemberConsistencyCheck(domainName, ZMSUtils.groupResourceName(domainName, groupName), false, caller);

        // everything is ok, so we should go ahead and delete the group

        dbService.executeDeleteGroup(ctx, domainName, groupName, auditRef);
    }

    public  ZMSImpl();

}