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