I have a directory with a few TB of files. I\'d like to delete every file in it that is older than 14 days.
I thought I would use find . -mtime +13 -delete
find . -mtime +13 -delete
find your/folder -type f -mtime +13 -exec rm {} \;
This works for me.
$ find ./folder_name/* -type f -mtime +13 -print | xargs rm -rf