Forum Discussion
How to delete duplicate files in Google drive?
Google Apps Script is a scripting platform primarily designed to automate tasks within Google Workspace applications like Google Drive, Sheets, Docs, etc. It runs in the cloud and cannot directly interact with your Windows computer's local files, if your goal is to delete duplicate files in Google Drive, then Google Apps Script is a good option. Here's how to delete duplicate files in google drive:
1. Search by Filename:
If your duplicate files have similar or identical filenames, you can use the search bar.
Example: Enter name:"Report.pdf" to find all files named "Report.pdf".
You can also use * as a wildcard, but Google Drive's search is limited.
2. Sort Files by Name or Size:
In your Google Drive, click on the "Name" or "Size" column to sort files.
This makes it easier to spot files with the same name or similar sizes.
3. Use Search Filters:
Click the filter icon in the search bar.
Filter by type, owner, or date to narrow down duplicates.
4. Manual Comparison:
Once duplicates are identified visually, select each duplicate file (click the checkbox).
You can preview files to verify if they are indeed duplicates.
5. Delete Duplicates files in Google Drive:
After verifying, delete duplicates by clicking the trash icon.
Remember to empty your trash to permanently free up space.