UNIX / Linux: Delete Files Older Than x Days August 13th, 2014 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.