Tag Archives: find

UNIX / Linux: Delete Files Older Than x Days

unix linux

To delete files that are older than x days, we first find them using the find command. Next, to delete the files, we use the execute action of the find command and pass down the list of files to be deleted to the rm command.