An hour or so ago I posted an answer to a question about finding an internal rate of return. The question looked like homework, but was well-presented and with effort shown. Within a few minutes of my posting an answer the question was deleted. Since the question had been showing for more than 17 hours, its deletion seems likely to have been prompted by my answer.
In case it is relevant, I had deleted my answer before the question was deleted, as I had had second thoughts about one point and wasn't able to spend time editing it right away. It was when I returned to try to post an amended answer that I found the question had been deleted.
While I can't be sure, it seems likely that deletion of the question was by the person who asked it (whose name I can't recall), possibly with the intention, once they had received an answer, of concealing the fact that they had used Econ SE to obtain help with homework.
Should this be regarded as bad behaviour, and if so is there anything that can be done to discourage it?