def delete_last_comma(including_last_comma_string: str) ->str:
    """
    入力文字列内に存在するケツカンマを削除し、削除した後の文字列を返す。
    ケツカンマを判定する条件は次の通り。
    ・カンマのあとに「'"' or 数字」が出現しないまま「']' or '}'」が登場する
    """
    last_comma_index = []
    doubt_last_comma_index = -1
    exists_comma_forward = False
    for index, char in enumerate(including_last_comma_string):
        if char == ',':
            exists_comma_forward = True
            doubt_last_comma_index = index
        elif char in ['"', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9']:
            exists_comma_forward = False
        elif char in [']', '}'] and exists_comma_forward:
            last_comma_index.append(doubt_last_comma_index)
            exists_comma_forward = False
        else:
            pass
    output = ''
    if last_comma_index:
        str_list = list(including_last_comma_string)
        for index in reversed(last_comma_index):
            del str_list[index]
        output = ''.join(str_list)
    else:
        output = including_last_comma_string
    return output
