Forrest logo
back to the find tool

find:ai:33256

how do i delete files older than a date
$ find ${filename}s -type f ! -newermt yyyy-mm-dd -delete
try on your machine

This command will find all files in the specified path that are older than the specified date (yyyy-mm-dd) and delete them.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.

Questions that are answered by this command:

  • how do i delete files older than a date?
back to the find tool