Uninstall the specified package.

    Args:
        pkg (str): The package name.

    Returns:
        dict: The ``result`` and ``output``.

    CLI Example:

    .. code-block:: bash

        salt '*' flatpak.uninstall org.gimp.GIMP

def uninstall(pkg):
    '''
    Uninstall the specified package.

    Args:
        pkg (str): The package name.

    Returns:
        dict: The ``result`` and ``output``.

    CLI Example:

    .. code-block:: bash

        salt '*' flatpak.uninstall org.gimp.GIMP
    '''
    ret = {'result': None, 'output': ''}

    out = __salt__['cmd.run_all'](FLATPAK_BINARY_NAME + ' uninstall ' + pkg)

    if out['retcode'] and out['stderr']:
        ret['stderr'] = out['stderr'].strip()
        ret['result'] = False
    else:
        ret['stdout'] = out['stdout'].strip()
        ret['result'] = True

    return ret