Well, I replicated your table and the script works fine for me. I assume it doesn't produce an error message for you, either, since you'd have told us what that is.
So that makes it fairly mysterious.
It's very strange I have a 14 page document with 24 arrow links and the script only deletes 7 of them in the only table that is split into 2 columns, without an error message.
I guess I still don't understand the "2 columns" thing. It's not clear
from your screenshot. Care to try another one?
Do all your links appear in the Links panel?
Perhaps you should try adding
$.writeln("There are "+links.length+" links");
before the for(var j) and see if that tells you something
interesting about the links in the links panel. If not, keep adding
more $.writeln() lines around in the script until you find where
your assumptions and its assumptions disagree.
Is it finding all the links? Is it finding all the filePaths?
Is it finding all the graphics that are parents of the links?
Is it finding all the frames that are parents of the graphics?
It also seems like it's giving me an error in my script editor on the other 17 links. "Error: Operation not permitted on unplaced content"