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