def delete_value(obj,key):
    key_fragments = key.split('.')
    current_dict = obj
    last_dict = None
    for key_fragment in key_fragments:
        try:
            if not key_fragment in current_dict:
                return
        except __HOLE__:
            return
        last_dict = current_dict
        current_dict = current_dict[key_fragment]

    if key_fragments[-1] in last_dict:
        del last_dict[key_fragments[-1]]
dataset/ETHPy150Open adewes/blitzdb/blitzdb/helpers.py/delete_value