I just read a new user question in which the user asked a good question (good description of issue) but included no code. When asked in a comment, they added code. An answer was added as a comment, the user indicated success and thanks, and then edited their question to remove the example code.
I have looked at the edits, and I don't see anything in the posted code that I would consider client/employer sensitive information. I do think someone searching for the issue could understand the question and the posted answer, but I also think that leaving the code in place might help another user understand the issue.
Is it acceptable to reverse the user's edit? The commented answer was later added as an actual answer, which OP has not accepted or upvoted yet. I am planning to add my own comment to encourage them to upvote and accept, and to revert their edit for the good of the community. But assuming the user never follows up, is it considered bad form to restore content removed by the original poster if the essence of the question remains intact after their edit?