Remove the specified snap package. Returns a dictionary of "result" and "output".

    pkg
        The package name

def remove(pkg):
    '''
    Remove the specified snap package. Returns a dictionary of "result" and "output".

    pkg
        The package name
    '''
    ret = {'result': None, 'output': ""}
    try:
        ret['output'] = subprocess.check_output([SNAP_BINARY_NAME, 'remove', pkg])
        ret['result'] = True
    except subprocess.CalledProcessError as e:
        ret['output'] = e.output
        ret['result'] = False