Here, we share several ways to clean up your files: using Terminal, using AppleScript and third-party apps.
Before you clean up your files, proper backup is necessary.
The terminal is the simplest way, you can have complete control, but be careful not to use wrong instructions, especially when using rm -f.
For detail please refer to:
os x terminal -remove files older than x days
If you like programming, using AppleScript is a great way to do this job. This post discusses how to write a script for automatic cleanup:
Delete downloads older than 30 days?
If you don’t have any time to play script or shell, then using our App is the best choice. Using AutoCleanFolder makes it easy to set up cleanup rules, and you can do a confirmation before the files are deleted.
About Files Restore
If you accidentally delete some files you do not want to delete, please do not perform any write operation to your hard disk, you can download the file recovery software to try to recover them. We recommend to use Data Recovery for Mac.