If the answer is opinion-based (which it seems to me to be - tell me if I'm wrong), here's mine:
I think if there's no end to the negative votes in sight (and you've already tried editing it a few times), it would be a good idea to delete the question, unless you don't care about your reputation points. If the negative votes stop, then by all means, keep it up.
Also, it should be noted that you might gain the peer pressure badge if you do delete it. So, if you want that, that's a reason. If you don't want it, avoid deleting it.
Anyway, those are the selfish reasons to consider.
If you want to help others at any cost, just don't delete it. Or, you could delete (or edit) it and ask a more likable question that helps the same people the same amount or better.
Also, you could always delete it and then ask the same question on something like the Ubuntu Forums' programming talk forum. Then, at least people will be able to find it on Google, and you won't be penalized for it.
Edit: Dubstaphone makes a fine point in the comments to another answer. That seems to indicate that maybe it isn't opinion-based. Check that out before you decide to delete anything. Maybe we're just not supposed to delete stuff because of downvotes. The fact remains, however, that sometimes people still downvote without explanation even after you've edited for clarification more than once (although this isn't a terribly frequent occurrence, in my experience, unless you like to ask questions that are perfectly valid, but seem ridiculous).