It's very much a case-by-case decision.
In this case, from what little context we have, it appears that the question said something wasn't working which, in fact, was working — e.g., observation error. In that case, the question is useless and should remain deleted.
But if someone asks a question that belongs on the site (isn't a complete duplicate, is on-topic, etc.), gets an answer (a real answer, or a comment), then deletes it before the answer gets upvoted (at which point they can't), well then that's just abusing the system (probably unintentionally). If the question belongs on the site, it should remain on the site. Questions and answers are primarily intended for reference by future readers, not just to help the OP who posted the question originally.
OP embarrassment isn't a factor to consider. If an OP has a question they're embarrassed to have asked and that question is never deleted (got an upvoted answer in time) or is undeleted, the OP can ask via a custom flag to be disassociated from the question.