def get_or_delete_A_info(a_num=None, username=None, delete=False):
    "回答データの補足情報をデータベースから、削除or取り出し"
    msg = ""
    r, a, root = get_A_data(a_num, username)
    if not r:
        return False, a, None
    if a_num is None:
        q = a
    else:
        if a is None:
            msg += "A%d not found" % a_num
            return True, msg, []
        q = [a]
    results = []
    num = 0
    for i in q:
        num += 1
        if delete:
            results.append({'anum': i.anum})
            i.cpu_sec = None
            i.mem_byte = None
            i.misc_text = None
            i.put()
        else:
            tmp = i.to_dict()
            del tmp['text']
            results.append( tmp )
    method = 'DELETE' if delete else 'GET'
    a_num2 = 0 if a_num is None else a_num
    msg += "%s A%d info %d" % (method, a_num2, num)
    return True, msg, results