Remove files older than x days on Linux

You just need to execute the below command as sudo / root

find /path/to/files* -mtime +5 -exec rm {} \;

Comments are closed.