How to use find command for removing old files

How to use find command for check and remove the old files into the directory

Tags: find command find files
user image Author :   lincoln
1

you just use following command for remove the last 10 days files,

find /directory/path/ -mtime -10 -type f -exec rm -rf {} \; 
user image
piraisudanrajendran October 11, 2017
Add comment