Linux - How to delete files older than x time, Delete files with in mtime

How to delete files older than x time

Delete all files older than X in given path
find . -mtime +10 -delete

This will find all files under the path "." which are older than 10 days, and delete them. If you wish to use the "rm" command instead, replace "-delete" with "-exec rm [options] {} \;"

The topic on Linux - How to delete files older than x time is posted by - Math

Hope you have enjoyed, Linux - How to delete files older than x timeThanks for your time

Tech Bluff