def METHOD_NAME():
    query = rhnSQL.prepare(_get_possible_wrong_query)
    query.execute()
    keyids = query.fetchall_dict()
    if not keyids:
        # no possible wrong keyids found
        return
    del_keyass_query = rhnSQL.prepare(_delete_key_association_query)
    del_key_query = rhnSQL.prepare(_delete_key_query)
    if verbose: print ("Processing %s possible wrong keyids" % len(keyids))
    i = 0
    for K in keyids:
        del_keyass_query.execute(id=K['key_id'])
        del_key_query.execute(id=K['key_id'])
        i = i + 1
        # we need to break the transaction to smaller pieces
        if i % 1000 == 0:
            rhnSQL.commit()
    rhnSQL.commit()
    return