Remove files using cron job

$ sudo crontab -e
* * * * *  find  /path/to/*.log -mtime +7 -exec rm -f {} \;

https://stackoverflow.com/questions/22462716/remove-log-files-using-cron-job

Share and Enjoy !

0Shares
0 0