Removing files past a certain date

In Linux, you can perform the following command in the directory that has the files to be deleted:

sudo find -mtime +30 -exec rm -R {} \;

Advertisements