def del_field(key, obj):
    """
    Remove field from dictionary.

    :param key: path to field in dictionary
    :type key: str

    :param obj: dictionary used for search
    :type obj: dict
    """
    val = obj
    subkeys = key.split('.')
    for subkey in subkeys[:-1]:
        if subkey not in val:
            return
        val = val[subkey]
    del val[subkeys[-1]]
