public function removeNamedGroupingPolicy($ptype, ...$params)
    {
        $ruleRemoved = false;
        if (1 == count($params) && is_array($params[0])) {
            $strSlice = $params[0];
            $ruleRemoved = $this->removePolicyInternal('g', $ptype, $strSlice);
        } else {
            $policy = [];
            foreach ($params as $param) {
                $policy[] = $param;
            }

            $ruleRemoved = $this->removePolicyInternal('g', $ptype, $policy);
        }

        if ($this->autoBuildRoleLinks) {
            $this->buildRoleLinks();
        }

        return $ruleRemoved;
    }