def destroy(zpool, force=False):
    ret = {}
    ret[zpool] = {}
    if not exists(zpool):
        ret[zpool] = 'storage pool does not exist'
    else:
        zpool_cmd = _check_zpool()
        cmd = '{zpool_cmd} destroy {force}{zpool}'.format(
            zpool_cmd=zpool_cmd,
            force='-f ' if force else '',
            zpool=zpool
        )
        res = __salt__['cmd.run_all'](cmd, python_shell=False)
        if res['retcode'] != 0:
            ret[zpool] = 'error destroying storage pool'
            if 'stderr' in res and res['stderr'] != '':
                ret[zpool] = res['stderr']
        else:
            ret[zpool] = 'destroyed'

    return ret
Updates viewpoint metadata.
dataset/ETHPy150Open saltstack/salt/salt/modules/zpool.py/destroy--crossover with--dataset/ETHPy150Open viewfinderco/viewfinder/backend/db/viewpoint.py/Viewpoint.UpdateOperation