The questionquestion you link to was not deleted as a matter of policy, it was deleted by its author. Normally, you would see a different message when browsing in that case (“voluntarily removed by its author”). The message for this question is “removed (…) for reasons of moderation” because the account that posted the question is also deleted and the database record thus no longer relates the deleter to the poster.
The general rules for deleting one's own question are:
- If there are valuable answers, then deleting the question is not allowed, because it would also delete the answers and we don't give the asker such power.
- If there are no valuable answers, then the asker is allowed to retract their question.
When there are answers, the software cannot determine whether they are valuable. The approximation that is implemented is: if there are multiple answers, or if there is an answer with a positive score, then the answers are considered valuable; if there is an answer with a nonpositive score, it is not considered valuable. Your answer fell in an unfortunate case where the approximation is incorrect.
There is a comment on the question:
Yes, that is intended. The problem is now solved because I switched from the Prolog editor (which didn't work) to the ordinary swi-Prolog and now I only get one solution as it was supposed to be. But I don't anderstand what you mean with "here is term_variables/2 as an ISO built-in predicate" ?
It's possible that the author deleted their question because switching compilers was good enough for them and they didn't care about the rest. If you feel that the question and your answer are valuable nonetheless, you can request to have them undeleted. I'm not a Prolog expert, but to me this looks like a very specific code critique which isn't of general interest and doesn't warrant undeletion.