---

How to Delete Files Older than Specified Days in Linux

As you might already know, we use the rm command in Linux to delete files and folders. The filenames to be deleted have to be passed as arguments to rm. However, rm does not offer other options by itself, like deleting files based on timestamps. Instead, using the find command can search with parameters like the filename, size, type of file, etc.

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis