If you want to delete files older than a certain date, you can do so by using the Windows operating system’s deletion tool. This tool can be found in the Start menu and is called “Delete.” To use this tool, you must first select the file or folders that you want to delete and then click on the “delete” button. The deletion process will start automatically and will take a few minutes to complete. After the deletion process is complete, you will need to check to see if the files were deleted successfully or not. If they were not, then you will need to re-enter the information for those files and then click on the “OK” button. If everything went according to plan, then your files will now be deleted and there won’t be any reminder of their existence in your computer’s memory.


We’ll just use the find command to search for all the files older than a certain date, and then use the –exec command to delete them. You could use the –delete command instead, but you’ll end up with a maximum arguments when there are too many files.

Find Command Syntax

Note that there are spaces between rm, {}, and ;

Explanation for Command

The first argument is the path to the files. This can be a path, a directory, or a wildcard as in the example above. I would recommend using the full path, and make sure that you run the command without the exec rm to make sure you are getting the right results. The second argument, -mtime, is used to specify the number of days old that the file is. If you enter +5, it will find files older than 5 days. The third argument, -exec, allows you to pass in a command such as rm. The {} ; at the end is required to end the command.

This pretty much works on any ‘nix distribution.