To locate and delete files older than x days, you should use combination of find and rm commands. In this example, I will use 5 days:
find /path/to/files* -mtime +5 -exec rm {} \;
Explanation:
Continue reading “How to find and delete files older than x days on linux”