I read a lot about deleting the own posts, for example:
Under which circumstances should I delete my own question or answer
When should I delete my posts?
Should I delete my answers?
But I think I have a different scenario from the above questions.
In this question, I knew the answer right after the OP pointed where the line with the error was, via a comment, then I started writing my answer, when I published I saw that another user posted the answer in a comment to the question. Right after, the question received a downvote, probably because it is too localized or even because the OP didn't put any effort on it.
The OP accepted my answer as correct, okay so far. But I start wondering: maybe, the question is not useful for further visitors, and as the question has a downvote it can be eliminated from the SO forever after 30 days as per this topic says so.
So my doubt is, to keep my answer makes me a rep-whore? To delete it is of any benefit to SO? Maybe, should I delete it just after 30 days to make sure nobody else is going to answer it and make the questions to stay there forever? Should I flag the question to be deleted?
Considering that I want the best to the community, what should I do afterall?
don't answer fool questions, put the answer as a comment
?