Forum Discussion
How to delete or clear cache on macbook air automatically
Create an Automated Cache Cleaner is the most convenient method to how to clear cache on mac using built-in tools.
It uses Automator to create a scheduled task that clears user caches and browser caches automatically, so you never have to clean manually again.
Usage Guide: Open Automator, select File → New → choose Calendar Reminder, search for “Run Shell Script,” and add it to the workflow. Then paste the following script:
#!/bin/bash
# Clear user caches (safe)
rm -rf ~/Library/Caches/*/
# Clear browser caches
rm -rf ~/Library/Caches/com.apple.Safari/
rm -rf ~/Library/Caches/Google/Chrome/Save this as a weekly cache cleanup tool, open the calendar, and set up a weekly schedule—for example, every Sunday at 3 a.m.
Once set, your Mac will run this script automatically to clear cache files on schedule.
This fully automated solution lets you how to clear cache on mac in the background, keeping your system fast and storage clean with zero effort.