@imageinfo.route('/delete', methods=['delete'])
def delete():
    msg = {'err': None, 'res': None}
    try:
        yamale.validate(schema_delete, yamale.make_data(content=request.data.decode('utf-8')))
        body = yaml.load(request.data, Loader=yaml.Loader)
        k = f"{body['namespace']}/{body['name']}"
        mydb.delete(db_path, k)
    except Exception as e:
        logger.error(str(e))
        msg['err'] = str(e)
    return jsonify(msg)
@imageinfo.route('/delete', methods=['delete'])
def delete():
    msg = {'err': None, 'res': None}
    try:
        yamale.validate(schema_delete, yamale.make_data(content=request.data.decode('utf-8')))
        body = yaml.load(request.data, Loader=yaml.Loader)
        k = f"{body['namespace']}/{body['name']}"
        mydb.delete(db_path, k)
    except Exception as e:
        logger.error(str(e))
        msg['err'] = str(e)
    return jsonify(msg)