I'm curious to know if there is a particular time to delete - or not delete - an answer that's clearly wrong?
Consider the first revision of https://unix.stackexchange.com/revisions/420788/1, which aside from a lack of formatting, contains a fragment of (presumably untested) code. The code attempts to answer the question so it's on topic, but it's incorrect in at least one significant way.
Ignoring the lack of formatting, I cannot find a text that explains whether to vote to delete such questions or accept it because it does attempt to answer the question.
- Accept and move on, knowing the answer is on topic but faulty
- Downvote and/or comment, and move on, knowing the answer is on topic but faulty
- Vote to delete, to try and clean up "wrong" answers
- Spend the time trying to fix what the author might have intended (potentially tricky without hitting the prohibition on changing the author's intent)