Name and organize7 min read

How to delete old screenshots on Mac automatically

Short answer

macOS has no setting that deletes old screenshots for you. You can find the old ones with a Finder search or one Terminal command and move them to the Trash together. To have it happen on its own, use an app like Shotlight, which moves them to the Trash after the number of days you choose.

Your Mac saves every screenshot you take and never clears any of them. Most were needed for a minute: a sign-in code, a map, an error you already reported. A year later the Desktop holds hundreds of them. You can clear them out once by hand, or set it up so old ones leave on their own.

Method Runs Best for
Finder search When you run it A one-time cleanup
Terminal command When you run it The same cleanup every few months, in seconds
Shotlight On its own Keeping the folder clear without thinking about it

Method 1: Find old screenshots in Finder and move them to the Trash

  1. Open the folder where your screenshots are saved. On a new Mac that is the Desktop.
  2. Press ⌘ F. Next to Search, click the folder’s name so Finder looks only in this folder.
  3. Change the first condition from Kind to Name, choose contains, and type Screenshot.
  4. Click + to add a second condition. Choose Created date, then is before, and enter a date, such as a month ago.
  5. Look through the list. Press Space on any file to preview it, and ⌘-click the ones you want to keep so they are no longer selected.
  6. Select the rest and press ⌘ Delete to move them to the Trash.

To run the same search next month, click Save before you close the window. Finder keeps it as a Smart Folder in the sidebar. A Smart Folder only lists files. It never deletes anything by itself.

This search goes by name, so it misses screenshots you renamed. The next method does not have that problem.

Method 2: One Terminal command

When macOS saves a screenshot, it marks the file as a screen capture, and the mark stays when you rename it. Spotlight can search for that mark. Open Terminal and run this to list every screenshot on the Desktop older than 30 days:

mdfind -onlyin ~/Desktop 'kMDItemIsScreenCapture == 1 && kMDItemContentCreationDate < $time.today(-30)'

Change ~/Desktop to your screenshot folder and 30 to the number of days you want. The command also looks inside folders within that folder. When the list looks right, run the same search again and send the results to the Trash:

mdfind -0 -onlyin ~/Desktop 'kMDItemIsScreenCapture == 1 && kMDItemContentCreationDate < $time.today(-30)' | xargs -0 trash

trash is a command that comes with macOS 26. It moves files to the Trash the way Finder does, so you can put them back. Many cleanup scripts online use rm instead, which deletes files with no way back.

If the first command lists nothing, check that Spotlight is allowed to search that folder in System Settings, then Spotlight.

Method 3: Let old screenshots leave on their own, with Shotlight

Shotlight names your screenshots and finds them by the words inside. It can also move them to the Trash after a number of days, in two ways.

A rule. In Settings, then Rules, you write a rule as a sentence, such as “When app is Messages, move to the Trash after 14 days”. The condition can be the app, words in the screenshot, a tag, or whether it is a recording. Under each rule you see how many screenshots it matches today.

Guard › Expiring. A screenshot of a sign-in code is useless after a few minutes and risky to keep. Turn on Expiring in the Library under Guard, and Shotlight moves screenshots with one-time codes to the Trash after 1, 7 or 30 days. You can add passwords, card numbers and API keys to the list.

Both work the same way once they are on:

  1. Nothing moves on the day you set it up. The days count from when you took the screenshot or from when you made the rule, whichever is later.
  2. Library, then Expiring, lists what is due this week and later, with a countdown on each one. Press K to keep a screenshot.
  3. Shotlight only ever moves files to the Trash. Recently expired lists them for 30 days with a Restore button.

Shotlight Library, Expiring section: a screenshot of API keys due in 6 days and a sign-in code due in 7 days, both blurred, and three reports due in 28 days

Shotlight shows no notifications about any of this. A line in the menu bar popover says what happened, such as “This week · 6 trashed”. It is free while in early access, and the download page has the install steps.

Which screenshots are safe to let go

Most people can let these expire after a week or two:

  • Sign-in codes and confirmation screens
  • Maps, directions and delivery tracking
  • Screenshots you took to send to someone, which already live in the chat
  • Retakes of the same screen (the guide to duplicate screenshots covers those)

Keep receipts, invoices, anything to do with taxes or a warranty, and screenshots of settings you might need to set up again. A rule can move those to a folder instead, so they never mix with the ones that expire.

What this does not cover

These methods move screenshots to the Trash and leave emptying it to you. If you want the Trash to empty itself, open Finder, choose Settings, then Advanced, and turn on Remove items from the Trash after 30 days. If your Desktop is in iCloud Drive, a screenshot you trash on one Mac also leaves your other Macs.

Screenshots in your Photos library are separate. To find a screenshot before it goes, see how to find old screenshots on Mac.

Shotlight is free and runs on your Mac.No account. Nothing leaves your computer.
Download for Mac

Questions people ask

Is there a built-in setting that deletes screenshots automatically?
No. macOS keeps every screenshot until you delete it. You need a Finder search, a Terminal command or an app.
Will the screenshots be gone for good?
Not with the methods here. They go to the Trash, and you can put them back until the Trash is emptied. Scripts that use the rm command skip the Trash, so read any script before you run it.
Can I keep a few of the old ones?
In Finder, leave them out of your selection before you move the rest. In Shotlight, select a screenshot in Library › Expiring and press K to keep it.
Does this delete screenshots in the Photos app?
No. These methods work on screenshot files in folders. Screenshots in your Photos library are deleted from inside Photos.