def delFromEnv(env, key):
    """
    Delete value from ConfigSet env.
    Operator 'del' doesn't work as expected with ConfigSet, see ConfigSet.__delitem__
    """
    try:
        while True:
            env.table.pop(key, None)
            env = env.parent
    except AttributeError:
        pass
