Negative consequences? No! By upvoting the other answer, you help guide future users to the knowledge they seek. By deleting your own answer, you reduce clutter. This is what Stack Overflow is all about!
Now, if your answer is correct but approaches the problem from a different perspective, you might want to leave it, even if the asker accepted a different one; future visitors may find your answer more helpful.
But you aren't required to leave your answer up, and won't be punished for deleting it, even if it has a positive score. The goal is to add value. Heck, they award badges for this kind of thing! I've got Peer Pressure, Disciplined, and Sportsmanship.
:D