I've helped some beginners and new members on SO today and multiple times, my answer helped them (as I got a "thank you" comment) but when I went to check the page, they had removed the entire question. I believe this happened at least three times to me today, maybe more.
It's not even about the magic internet points I would get from an accepted answer. It's fairly common to see beginners just miss the concept of accepting an answer, so if I only get an upvote or even just a 'thank you' comment, I at least know I helped them.
But deleting the entire question seems counterproductive and not the point of this website.
Can we prevent new users from doing this?
I can certainly understand why users are doing this; they probably feel ashamed for missing something obvious, or simply don't see the point on keeping such a question around as they have got their answer and want to move on.