RbacHelper.php
public static function removeRuleByName($name)
    {
        $auth = Yii::$app->authManager;
        $rule = $auth->getRule($name);
        return $auth->remove($rule);
    }
public static function removeRuleByName($name)
    {
        $auth = Yii::$app->authManager;
        $rule = $auth->getRule($name);
        return $auth->remove($rule);
    }
public static function removeRuleByName ( $ name ) { $ auth = Yii :: $ app -> authManager ; $ rule = $ auth -> getRule ( $ name ) ; return $ auth -> remove ( $ rule ) ; }
Removes rule from RBAC system by name.
@param string $name
@return boolean whether the rule is successfully removed
Removes rule from RBAC system by name .