We have basic protections in place to stave off this sort of abuse. The system automatically blocks self-deletion of a question when that question:
- has an answer with at least one upvote (regardless of the answer's net score),
- has multiple answers (regardless of votes),
- has an accepted answer, or
- has an answer that has been awarded a bounty.
This is designed to prevent someone from asking a question, getting (a) good answer(s), and then deleting the question, thus throwing away the effort of the answerers and robbing the rest of us of that value.
The edge case here is when the time elapsed between posting of the answer and deletion of the question is very small. If the community hasn't had a chance to review and vote on the answer, then there will be no upvotes on the answer to block deletion.
On the other hand, we really don't want to prevent people from cleaning up their own garbage, so I'm not convinced that it makes sense for these rules to be any more strict.
If you witness an edge case, where something of true value is being thrown away by the original asker, please flag it for moderator attention. We will be happy to step in and undelete it. Use a custom flag, and explain clearly why you are flagging (the question has been deleted by the asker), what you want a moderator to do (please undelete the question), and why (because it is a useful question that has received a good answer, which will be of value to others in the future).
In this specific case, for what it's worth, I wholeheartedly agree with you. That was a good question, and it should not have been deleted. (The community already handled undeleting it.) I can't really understand why the question was scored at −2 when I looked at it, either. I personally think it's worth an upvote, and I have pretty high standards. I can only assume those downvotes rolled in before it was edited.