def METHOD_NAME(pkg, dir, runas=None, env=None):
    """
    Uninstall a Bower package.
    pkg
        A package name in any format accepted by Bower
    dir
        The target directory from which to uninstall the package
    runas
        The user to run Bower with
    env
        Environment variables to set when invoking Bower. Uses the same ``env``
        format as the :py:func:`cmd.run <salt.modules.cmdmod.run>` execution
        function.
    CLI Example:
    .. code-block:: bash
        salt '*' bower.uninstall underscore /path/to/project
    """
    _check_valid_version()
    cmd = _construct_bower_command("uninstall")
    cmd.append(pkg)
    result = __salt__["cmd.run_all"](
        cmd, cwd=dir, runas=runas, env=env, python_shell=False
    )
    if result["retcode"] != 0:
        raise CommandExecutionError(result["stderr"])
    # If package is not installed, Bower will emit empty dict to STDOUT
    stdout = salt.utils.json.loads(result["stdout"])
    return stdout != {}