Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 342 Bytes

delete_files_older_than_90_days.md

File metadata and controls

13 lines (7 loc) · 342 Bytes

Delete files older than 90 days

First, list files older than 90 days...

find . -mtime +90 -type f

(note, could specify a specific/absolute folder instead of "." for current folder)

Note -type f means "files"

Happy with the result? Add a -delete parameter to delete those files. So long, files!

find . -mtime +90 -type f -delete