def METHOD_NAME(lab_id):
    if lab_id not in labs:
        return Response('No lab with id %d' % lab_id, status=404)
    try:
        labs[lab_id].destroy()
    except Exception as ex:
        logger.exception(ex)
        return Response(str(ex), status=500)
    return jsonify({'status': 'ok'})