To delete duplicate files on Mac you can use Finder, Terminal, Smart Folder or Automator and these are free methods. You can also use SysTools software to remove duplicate files from Mac if you have large data. Duplicate files can look like same or almost same copies of photos, videos, audio files or documents.
In this guide you will learn 4 free methods with their limitations. You will also learn how to manage large files or folders using software.
What We Will Cover in This Guide
4 Free Methods: How to use Finder, Terminal (MD5 checksum), Smart Folders, and Automator.
Limitations: These methods mainly compare file names, dates, sizes, or checksums. They may miss similar files that have been edited.
Automated option: SysTools Duplicate File Finder Remover helps you find and delete exact duplicate files on Mac, and it allows you to preview files before deleting them.
Video Guide to Deleting Duplicate Files on Mac
Method 1: Delete Duplicate Files on Mac Using Finder
Finder is a in built tool in Mac for managing files, with you can find duplicate files by comparing file name, size or date. Check files and move extra copies to trash and this method is a good option for small sizes file folders. Key Considerations:
- Time-consuming for large folders.
- Carefully verify files before deleting them.
- Sorting options in Finder help in the identification process.
- Permanently delete files by emptying the Trash.
Steps
- Click the Finder icon in the Dock, then press Command + N to open a new window.
- Browse to the folder that contains the suspected duplicate files.
- Switch to List view using View → as List or press Command + 2.
- Press Command + J, select Date Modified, Size, and Kind, and set Sort By to Name. Close the panel when finished.
- Click the Name or Size column header to sort the files. Look for files with the same size or names such as
photo copy.jpgorphoto 2.jpg. - Verify each suspected pair before deleting anything. Select a file and press Space to open Quick Look, or press Command + I to compare its size and dates.
- Hold Command and click the extra copies, keeping one original. Right-click a selected file and choose Move to Trash, or press Command + Delete.
Note: Cross-check the files before deleting them so that you may not remove important data. The best practice is to take a backup of files before performing any operation.
Method 2: Delete Duplicate Files on Mac Using Terminal
Terminal is inbuilt MacOS app which allows you to use commands to manage files. It can find duplicate files by checking their content and listing files that match. But you must know how to run the command, rm commands deleted files directly instead of moving files to trash. Key Considerations:
- Requires familiarity with Terminal commands.
- Use caution with the rm command to avoid accidental deletions.
- Customize the command based on the file type.
Steps
- Press Command + Space, type Terminal, and press Enter.
- Go to the folder you want to scan. Replace the example path with the path to your own folder:
cd "/path/to/your/folder" - Run the following command to find files with identical content by grouping them according to their MD5 checksums:
find . -type f -size +0 ! -name ".DS_Store" -exec md5 -r {} + | sort | awk '{c[$1]++; l[$1]=l[$1] $0 "\n"} END{for(h in c) if(c[h]>1) printf "%s\n", l[h]}' - Review the results. Files with the same checksum are grouped together, with a blank line separating different groups. Each group indicates files that may have identical content.
- Choose one copy to keep in each group and note the paths of the extra copies.
- To locate an extra copy in Finder, run the following command. Replace the example path with the actual file path:
You can then review the file and move it to the Trash from Finder.open -R "/path/to/extra-copy" - If you are sure the file is an extra copy, you can delete it using Terminal. Run this command and type y when prompted to confirm:
rm -i "/path/to/extra-copy"
Important: Keep the quotation marks around file paths, especially when file or folder names contain spaces. The rm -i command asks for confirmation before deleting each file. Delete files one at a time and verify that you are keeping the correct original.
Method 3: Delete Duplicate Files on Mac Using Smart Folders
Smart Folders save your search in Finder and update the results automatically. You can use them to see files with the same kind, name or modification date and check whether they are duplicates. Key Considerations:
- Set precise search criteria to narrow down results.
- Sorting options aid in the identification process.
- Drag and drop files from the Smart Folder to the Trash.
Steps
- In Finder, open the folder you want to scan, then choose File → New Smart Folder.
- In the Search: row, click your folder’s name instead of This Mac, so the search is limited to that folder.
- Click the + button on the right and add suitable search criteria:
- Name: Choose a condition such as contains and enter
copyor(1)to find files with common duplicate names. - Kind: Select a file type, such as Image, to narrow the search.
- Last modified date or Other → File Size: Use these criteria to narrow the results and compare files.
- Name: Choose a condition such as contains and enter
- Switch to List view by pressing Command + 2. Press Command + J and select Size, Kind, and Date Modified. Then choose View → Show Path Bar to see where each file is stored.
- Click the Name or Size column header to sort the results. Files with the same size may appear next to each other.
- Verify each suspected duplicate before deleting it. Select a file and press Space for Quick Look, or press Command + I to compare its size and dates.
- Hold Command and click the extra copies, keeping one original. Right-click a selected file and choose Move to Trash, or press Command + Delete.
- Review the deleted files in the Trash. When you are sure you no longer need them, right-click the Trash icon in the Dock and select Empty Trash.
Note: Smart Folders cannot detect or delete duplicate files automatically. This method only shows filtered files. You need to check the files manually before deleting them.
Method 4: Delete Duplicate Files on Mac Using Automator
Automator is a macOS tool that helps you perform repeated tasks automatically. You can create a workflow to find files that match your chosen conditions and move them to the Trash. Key Considerations:
-
- Requires basic knowledge of Automator.
- Workflow actions include finding and moving files based on Name, Date Modified, etc.
- Run the workflow to execute the deletion process.
Steps
- Open Automator from the Applications folder. Choose File → New, select Workflow, and click Choose.
- In the left sidebar, open Files & Folders and drag Get Specified Finder Items into the workflow area. Click Add and select the folder you want to scan.
- Drag Find Finder Items below the first action and set Search to Specified Finder Items.
- In the criteria row, set Name to contains and enter
copyor(1)as the search value. - Click Run at the top right. Open the Results tab under Find Finder Items and compare each match with its original. Do not add the Trash action yet.
- Only after manually confirming the files, consider dragging Move Finder Items to Trash below the find action. Review the selected items before running this action.
- Choose File → Save and give the workflow a name, such as Trash copies. Click Run to execute the workflow.
- Open the Trash and check the files. To restore a file, right-click it and choose Put Back.
Important: This workflow moves all files that match the name you set to the trash, it does not check the file content whether the files are duplicate. Choose your condition carefully and check the files before running the workflow. Related: Ideal answer on “how to delete duplicate photos on PC?”
Limitations of Manual Methods to Delete Duplicate Files on Mac
Finder, Terminal, Smart Folders and Automator have some limitations when finding and deleting duplicate files on Mac.
- Cannot find similar files: These methods may miss edited files, burst photos and audio files saved in different formats.
- Risk of deleting the wrong files: The Terminal
rmcommand deletes files directly instead of moving them to the Trash. - Cannot choose which copy to keep: These methods do not automatically choose the best copy to keep or select extra copies for deletion.
- Limited cloud file search: Finding duplicate files in iCloud, Google Drive or Dropbox can be difficult when the files are not downloaded to your Mac.
- Slow for large numbers of files: Manual methods can take a lot of time, especially when you need to check and delete many files on Mac.
- May miss files with different names: Finder, Smart Folders and Automator mainly use details such as names, dates and sizes. They may miss the same file saved with a different name.
Delete Duplicate Files on Mac with SysTools
SysTools Duplicate File Finder and Remover is an automated solution for finding and deleting duplicate files on Mac. It scans selected folders and subfolders, detects exact and similar duplicate files, and lets you preview them before deleting. This tool also supports external devices like pen drives, SSDs, external hard drives or camcorders. With this tool, you can find or manage available duplicate files in different devices.
Here are some of the features of this distinct application:
- Efficient scanning engine
- Deep recursive scanning option
- Wide range of supported file extensions: EXE, MSI, MSIX, APP, DMG, PKG, ZIP, TAR, RAR, 7-ZIP, TGZ, GZ, ZIPX, etc.
- Move or delete duplicate photos easily
- Visual similarity detection
- Preview before deleting photos
- Compatibility with external storage devices (e.g., Pendrive, SSD, External disk, Camcorder, etc.)
Simple Steps to Identify and Remove Identical Files on macOS: Step 1. Download and Set up the Duplicate finder and remover application on your macOS.
Step 2. Hit on the “Add Folder” tab to add the folder containing the suspect duplicate files.
Step 3. Next, pick the right scanning parameters. Then, select any particular file extension under the “Select from file extension in folder” option. After that, tap on Continue.
Step 4. Press on the “Delete” button to eliminate the similar files collected on the system.
Step 5. In the end, you will see that Action column, the message tag is changed to Deleted. 
Common Questions About Deleting Duplicate Files on Mac
Use finder, terminal, smart folders or Automator and these methods mainly compare file name, date and size..
No, Mac doesn’t have an in-built application such as a duplicate file cleaner. But you can make a partial copy of it by using any of the above methods.
Yes, Yes, duplicate file detection tool scans selected folders and finds exact or similar looking files, you can preview the files and help you delete the files that you do not need.
You can easily find duplicate files on your Mac Air using Finder on macOS: Open Finder and navigate to the folder or drive. Use Command + F or go to “File” → “Find.” Click “+” to add criteria, choose “Kind” and set it to “Any.” Add another criterion with “+” and select “Other,” search for “Size,” and add it. Set a reasonable size range. Click “Save” for future use. Arrange results by name or size to spot duplicates easily.