Answer-invalidation involves editing a question in such a way that something addressed in an answer is lost. This is disallowed on Code Review as it disrupts the review process as specified in the Help Center.

For more information regarding this policy, refer to the Help Center and this Meta FAQ entry.