MacBook App Cleaner
HomeBlog › How to Empty the Trash Automatically on a Mac

How to Empty the Trash Automatically on a Mac

Published July 21, 2026 · 5 min read · By the MacBook App Cleaner team

In short: Your Trash quietly holds onto deleted files for as long as you let it, and that reclaimable space adds up. macOS has a built-in setting that clears items after 30 days, so you never have to remember. Here is how to turn it on and use it safely.

Deleted files do not actually leave your Mac when you drag them to the Trash. They sit there, taking up disk space, until you empty the Trash by hand. If you rarely do that, gigabytes can quietly pile up. The good news is that macOS can empty the Trash automatically for you, and once you set it up, you can forget about it. This guide walks through the built-in 30-day option on macOS Sonoma and Sequoia, explains what it does and does not touch, and covers a few safe habits so you never lose something you needed.

Turn on the 30-day auto-empty setting in Finder

macOS has a Finder preference that removes items from the Trash after they have been there for 30 days. It is off by default, so you have to enable it once. Here is how:

  1. Click the desktop or a Finder window so Finder appears in the menu bar.
  2. Open the Finder menu and choose Settings (on older versions this reads Preferences).
  3. Click the Advanced tab.
  4. Check the box labeled Remove items from the Trash after 30 days.

That is the whole setup. From now on, anything you put in the Trash is deleted automatically once it has sat there for 30 days. The clock runs per file based on when it entered the Trash, so newer items stay put while older ones clear out on their own.

What the 30-day rule actually does

It is worth being precise about what this setting affects, because the name can be misleading. The 30-day rule only applies to files that are already in the Trash. It does not scan your Mac, hunt for old downloads, or reach into folders you have not touched. Nothing gets removed just because a file itself is old. A file has to be in the Trash, and it has to have been there for a full 30 days, before macOS clears it.

This makes the setting a gentle safety net rather than an aggressive cleaner. You still control what goes into the Trash in the first place. The only thing you are automating is the last step, the part people forget: actually emptying it. If you want something gone sooner, you can still open the Trash and click Empty whenever you like.

Empty the Trash on demand when you need the space now

The 30-day setting works quietly in the background, but sometimes you want space back immediately. You have a few options:

  • Open the Trash from the Dock and click Empty in the top-right corner.
  • Right-click (or Control-click) the Trash icon in the Dock and choose Empty Trash.
  • With Finder active, press Command-Shift-Delete, then confirm.

To remove a single item without clearing everything, open the Trash, right-click the file, and choose Delete Immediately. That is handy when one large file is eating your space but you want to keep the rest of your Trash as a safety buffer.

Keep it safe: why the Trash is your undo button

The reason the Trash exists is reversibility. As long as a file is still in the Trash, you can drag it back out or right-click it and choose Put Back to restore it to its original folder. Emptying the Trash is the point of no return, so it pays to glance through it before you clear it manually. The 30-day rule gives you a comfortable window to notice a mistake before it becomes permanent.

A quick habit worth keeping: before you empty the Trash, take ten seconds to scroll through it. If you are not sure about a file, leave it. Disk space is cheap; recovering a deleted file is not.

This same principle is a good yardstick for any cleanup tool you install. Safe cleaning means previewing what will be removed before anything happens, only touching user-level junk like caches and logs by default, and sending removals to the Trash so they stay reversible rather than permanently erasing them. A tool that skips the preview or permanently deletes files takes away the very undo button macOS gives you for free.

A note on privacy and one honest recommendation

While we are talking about cleanup tools, privacy deserves a mention. A cleaner runs entirely on your machine and has no legitimate reason to phone home. If you want to confirm that for yourself, a firewall like Little Snitch will show you every outbound connection an app tries to make. A well-behaved cleaner should make none beyond an update check you started.

If you would like a dedicated app that follows these principles, CoreSweep is our top free pick: free forever, an optional one-time Pro upgrade at $49, zero telemetry, and deletes that go to the Trash so they stay reversible. For a lighter-weight, best-value runner-up, SkoonMac is free with a one-time $19 Pro option. Both let you preview before you commit, which keeps you in control.

Setting up the 30-day auto-empty takes under a minute and quietly reclaims space you would otherwise forget about. Turn it on, keep the habit of a quick glance before you empty manually, and your Trash will take care of itself.

Frequently asked questions

Does the 30-day auto-empty setting delete old files anywhere on my Mac?

No. It only affects files that are already in the Trash, and only once they have sat there for a full 30 days. It never scans your Mac or removes a file just because the file itself is old, so you still decide what goes into the Trash in the first place.

How do I turn on automatic Trash emptying on macOS Sonoma or Sequoia?

Open the Finder menu and choose Settings (called Preferences on older versions), click the Advanced tab, and check "Remove items from the Trash after 30 days." It is off by default, so you only need to enable it once and macOS handles the rest.

Can I still recover a file after turning on auto-empty?

Yes, as long as the file is still in the Trash. You can drag it back out or right-click it and choose Put Back to restore it to its original folder. The 30-day window gives you a comfortable buffer to notice a mistake before deletion becomes permanent.

The easy way to do this safely

If you'd rather not do it by hand, the two cleaners we rate highest run with a preview first and the Trash as a safety net — and neither sends any data off your Mac.

CoreSweep (free to use; Pro a one-time $49) is our top pick. SkoonMac (free; Pro $19 once) is the best-value runner-up. See the full comparison.

← All Mac cleaning guides · Back to the comparison