I wanted to find out how to delete folders that are older than X days. Then, I found this question:
https://stackoverflow.com/questions/32992498/how-to-delete-folders-older-than-two-days/
The title of the question is perfect; however, the question itself is poorly written and got closed.
There was no good answer that solved the problem. I also could not find a similar question on Stack Overflow (only how to delete files that are older than X days, but this is very different!).
I now figured out how to do it and produced a code snippet, and I would like to share it. But since the question is closed, I can't do it.
What should I do now if I want to share my answer? I was actually thinking of asking a new question on Stack Overflow only to provide my answer. But I wasn't sure if this is really a good thing to do.