No, we don't delete stuff just because we don't personally find it useful. There are, however, a lot of scenarios where content is not useful to the community and we do clean it up. In this case it wasn't your post specifically but the question as a whole that was a steaming mess.
The question was closed as off-topic. In this case no moderator even stepped in to make that happen, 5 community members voted on that. That's the opposite of what your post claims: that is is the community saying content along these lines isn't what we want being posted on the site.
This has nothing to do with your answer. Even very high quality answers might not be something we want to keep around if the question topic doesn't square with the site's guidelines.
Both the question and answer were attracting nonconstructive comments (even name calling and insults). Having the content lying around was just fanning a flame war. Cleaning up the whole mess puts out the fire and resets the post to the stage where they need to be worked on. In this case if anything is going to happen to the post it would need to be edited to be on topic and cleaned up, then the community would need to vote to reopen it.
If that step isn't going to happen, nothing else should. There is no sense in letting a discussion run on about post content that has been determined to be off-topic.
Leaving answers –even reasonably good answers– on controversial closed questions only serves two counter-productive outcomes.
If the answer is bad, wrong, or disputed in any way people are unable to fix it properly. The best thing to do in these scenarios is post a good answer. Since this can't happen on closed questions comments end up getting abused to carry on topical discussions. The outcome is not a high signal-to-noise ratio and good answers floating to the top where they can be easily found.
If the answer is good or at least passable, nobody is motivated to fix the problem. The OP will go on asking poor off topic questions because they're getting the answers they want even though their questions are getting closed. The community isn't motivated to edit or help reopen thing or re-ask in more appropriate ways.
To make a long story story short, it's often the best thing for the long term of the site if off-topic stuff in cleaned up (whether posts or comments) so that it doesn't breed more of the same.
If the content of your post is something you thing does fit the modus operenti of this site, then the thing to do would be to ask a question that is actually on-topic for which it would be an appropriate answer.
Addendum: If you're serious about making the content available you should take me up on that final suggestion sooner rather than later. The entire question post will eventually be deleted. Part of the reason I didn't do that part already is to give you time to either edit the question or post a new one. You can see your deleted post for now but when the question goes away that will be a lot harder as you can't see others deleted posts yet.