How to Automatically Empty the Trash on macOS After 30 Days

When you delete a massive 10GB video file on your Mac by pressing Cmd + Delete, you have not actually reclaimed any hard drive space. macOS simply moves the file into a hidden directory called the Trash. The file will sit there forever, silently consuming your SSD, until you actively right-click the Trash icon and select “Empty Trash.”

Many Mac users forget to do this, leading to the infamous “Your disk is almost full” warning, only to discover they have 150GB of garbage sitting in their Trash bin. To completely automate your system maintenance, you should configure macOS to act like a self-cleaning oven, automatically purging any file that has been sitting in the Trash for more than 30 days.

Step 1: Open the Finder Settings

This setting is not located in the main System Settings app. It is a core function of the Finder (macOS’s file explorer).

  1. Click anywhere on your empty Desktop to ensure Finder is the active application.
  2. Look at the main menu bar at the absolute top of your screen. Click on the word Finder (right next to the Apple logo).
  3. Select Settings… (or “Preferences…” on older versions of macOS) from the dropdown menu.

Step 2: Access the Advanced Tab

  1. A small Settings window will pop up.
  2. Look at the top of the window and click on the tab labeled Advanced (it usually looks like a gear icon).

Step 3: Enable the 30-Day Purge Rule

Inside the Advanced tab, you will see a list of checkboxes controlling how macOS handles file deletion and warnings.

  1. Look for the specific checkbox labeled: Remove items from the Trash after 30 days.
  2. Click the box so a blue checkmark appears.
  3. Close the Settings window.

The Result

Your Mac will now silently police your garbage collection in the background. If you delete a file on September 1st, it will remain safely in the Trash, allowing you to easily recover it if you made a mistake. However, the exact second October 1st arrives, the operating system will mathematically identify that the file has crossed the 30-day threshold and permanently obliterate it from the SSD.

This creates a perfect rolling archive: you always have a 30-day safety net to recover accidental deletions, but your hard drive will never slowly choke to death on months-old, forgotten garbage files.

RELATED POSTS

  • How to Rename Your Mac Hard Drive
  • How to Automatically Empty the Trash on Your Mac After 30 Days
  • How to Show the Battery Percentage on Your Mac Menu Bar
  • How to Rename Multiple Files at Once on a Mac using Finder
  • How to Delete a Wi-Fi Network on a Mac
  • Get the best tech tips delivered straight to your inbox.

    Join thousands of readers mastering Apple, Google, Microsoft, and Linux.