

def delete(uuid):
    "\n    Remove an installed image\n\n    uuid : string\n        Specifies uuid to import\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' imgadm.delete e42f8c84-bbea-11e2-b920-078fab2aab1f\n    "
    ret = {
        
    }
    imgadm = _check_imgadm()
    cmd = '{0} delete {1}'.format(imgadm, uuid)
    res = __salt__['cmd.run_all'](cmd, python_shell=False)
    retcode = res['retcode']
    if (retcode != 0):
        ret['Error'] = _exit_status(retcode)
        return ret
    result = []
    for image in res['stdout'].splitlines():
        image = [var for var in image.split(' ') if var]
        result.append(image[2])
    return result

dataset/ETHPy150Open saltstack/salt/salt/modules/smartos_imgadm.py delete/original