How to easily delete files of the same type in the MacOS Sonoma Finder

How to easily delete files of the same type in the MacOS Sonoma Finder

/>

X

Tech
Why you can trust ZDNET : ZDNET independently tests and researches products to bring you our best recommendations and advice. When you buy through our links, we may earn a commission. Our process

‘ZDNET Recommends’: What exactly does it mean?

ZDNET’s recommendations are based on many hours of testing, research, and comparison shopping. We gather data from the best available sources, including vendor and retailer listings as well as other relevant and independent reviews sites. And we pore over customer reviews to find out what matters to real people who already own and use the products and services we’re assessing.

When you click through from our site to a retailer and buy a product or service, we may earn affiliate commissions. This helps support our work, but does not affect what we cover or how, and it does not affect the price you pay. Neither ZDNET nor the author are compensated for these independent reviews. Indeed, we follow strict guidelines that ensure our editorial content is never influenced by advertisers.

ZDNET’s editorial team writes on behalf of you, our reader. Our goal is to deliver the most accurate information and the most knowledgeable advice possible in order to help you make smarter buying decisions on tech gear and a wide array of products and services. Our editors thoroughly review and fact-check every article to ensure that our content meets the highest standards. If we have made an error or published misleading information, we will correct or clarify the article. If you see inaccuracies in our content, please report the mistake via this form.

Close

How to easily delete files of the same type in the MacOS Sonoma Finder

If you need to ‘batch delete’ or find files of the same type in MacOS Sonoma, there’s a way to do that which is hidden in plain sight.
Apple MacBook Air M2

Cliff Joseph/ZDNET

I realized recently that I had a lot of files that could be deleted from my MacBook Pro. The files in question were all the .dmg installers that are no longer necessary (as the apps have already been installed).

I could have gone through the Downloads folder and selected each of those files and deleted them, but that’s a slog, especially when the folder is filled with files that you want to keep.

Also: How to create a web app in MacOS Sonoma (and why)

I don’t always have the time to manually hunt for files of the same type in a crowded folder. When that’s the case, I turn to Finder’s built-in search feature, which greatly simplifies the process of locating specific files.

How do you use this super-handy feature? Fortunately, it’s quite easy — once you know the trick. Let me enlighten you.

How to find files of the same type in Finder

What you’ll need: To use this feature, you’ll need a MacOS device (such as a MacBook or iMac) with an updated version of MacOS. You should always keep your operating system as up to date as possible to ensure you’re protected against bugs and vulnerabilities. 

That’s all you need. 

1. Open Finder

The first thing to do is open Finder, which you can be done from the MacOS Dock. When Finder opens, you won’t see any obvious indication as to how you can locate these files without using the old “hunt and peck” method.

MacOS Sonoma's Finder app.

There’s no obvious means of searching in Finder without taking action.

Screenhot by Jack Wallen/ZDNET

2. Open the Find feature

With Finder open, navigate to the folder you want to search, such as Downloads, and hit the Command+F key combination. If you prefer using menus, you can click the File entry in the Menu Bar and click Find.

3. Configure your search

You should now see the Search options for Finder. 

Also: How to create multiple profiles in MacOS Sonoma Safari

Let’s say you want to locate application installation files (those that end with .dmg). Make sure Kind is selected from the left drop-down menu. For the right drop-down, select Archive, and the complete list of all the .dmg files you have in Downloads will appear. The only caveat to this search is that, by selecting Archive, you will also see .zip files included in the list. 

The Finder search feature.

As you can see, both .dmg and .zip files are currently included in the search results.

Screenhot by Jack Wallen/ZDNET

4. Narrow down the conditions

To view only the .dmg files, you’ll want to add another condition. To do that, click + under the first condition (Kind + Archive). For that condition, select Name and then ends with. Finally, type .dmg in the text field to the right of ends with. 

Also: Upgrading to MacOS Sonoma? Do these 7 things first

At this point, only the .dmg files will appear. If you want to delete these files, click in the results pane, click Command+A, and the two-finger tap (or right-click), and select Move to Trash.

Two search conditions added to the Finder Find feature.

You can add as many filters as necessary to continue narrowing down your search conditions.

Screenhot by Jack Wallen/ZDNET

And that’s all there is to batch-deleting files of the same type in MacOS Finder. You can apply this to all types of files, and even add date conditions to further narrow down your search. It may not be the easiest task, but it’s certainly a lot more efficient than manually deleting files one by one.

Editorial standards

Add a Comment