In this question, there was an answer (now deleted by the user) which did try to answer the question (although the answer was only vaguely correct) and had a spamming link in the answer.
It was quickly downvoted and the user subsequently deleted the answer.
My question is that in such a scenario before the answer is deleted or even downvoted, it is acceptable to improve the answer by editing it and removing the spamming link in it and also improving other aspects of the answer.
Or we should let the normal voting process handle such answers.