New York Office
70-11 Austin Street, Suite 3L
Forest Hills, NY 11375
Tel : (866) 228-6286
Fax : (718) 897-9665
Florida Office
13899 Biscayne Blvd
Suite 211 Miami, FL 33181
Tel : (866) 228-6286
Fax : (718) 897-9665
Las Vegas Office
1810 E. Sahara Ave.
Las Vegas, NV 89104 suite #121
Tel : (866) 228-6286
Fax : (718) 897-9665

Reboot Computer Services inc. Solution Experts

  • Increase font size
  • Default font size
  • Decrease font size

Find and delete matching files

Lets day for some reason you needed to find files that were more than 30 minutes old and delete those files. You can use a very simple command for this that you can later add to an Apple script, shell script or even automate it using Launchd.
This will find and remove any files in the folder path specified in quotes that is older than 30 minutes
find "folder path"  -type f -mmin +30 -exec rm {} \;
You can also modify this and search for things that are older than 7 days
find "folder path" -type f -mtime +7 -exec rm {} \;