So, I recently answered a question. But later it turned out that it wasn't actually the good/right way of solving that particular problem. Two things happened: 1. I got downvoted. 2. I learned something new.
So now how should I actually go with that answer? Should I just leave it there. Or should I edit it to include the fix but that is already in the accepted answer. Or may be I delete that answer.
The reason I ask because if I will delete then other people having same issue might not be able to know that using the method I suggested is wrong. But if I keep it there then the wrong or in-correct suggestion listed among the answers does not add any value to WPSE.