Looked for the simple command today and here it is:
find <path to files> -mtime +N -type f -delete find <path to directories> -mtime +N -type d -delete
Where +N is how many days ago.
So in case of 2 days it should be: -mtime +2
My main background for a recent years is MySQL DEV/DBA engineer but I’m also participating in wider range of tasks which could be likely called as DataOps/DevOps tasks. You can see my online CV here: http://catyellow.net