def remove_trailing_colon(id_value: str) -> str:
    """
    Remove a trailing colon of id. It is need, for example, to search the last version of record.

    :param id_value: Id value.
    :return: Id value with no trailing colon.
    """
    return id_value[:-1] if id_value.endswith(":") else id_value