Library / Files & Cloud Storage
Files & Cloud Storage
Find and Trash Duplicate Files in Google Drive
When a file changes in a Google Drive folder, it finds duplicates, keeps the first or last copy and sends the others to trash.
What it does
# 2. Configuration Choose the keep and action behavior of the workflow 1. The keep parameter let's you decide whether to keep the first or last received file when duplicates are detected. (possible values: first, last. Default: last) 2. The action parameter let's you decide what to do with the detected duplicates. Send them to the trash or flag them by renaming them with prefix DUPLICATE- (possible values: trash, flag. Default: flag) flag already prexied by DUPLICATE- are not flagged again. The parameters owner and folder are taken from the trigger and will probably never need to be changed: - The folder points to the folder to work with. By default it is taken from the trigger. - The owner parameter needs to match the owner of the files. The workflow only works with files owned by this user. It is specified with the user email and is taken from the first file owner of the trigger.
The steps
- Config
- Edit Fields
- Filter
- Deduplicate Keep First
- Deduplicate Keep Last
- Send Duplicates to Trash
- No Operation, do nothing
- Is Flagged
- Google Drive Trigger
- Drop Google Apps files
- Working Folder
- Google Drive
- Keep First/Last
- Trash/Flag Duplicates
Similar automations
Files & Cloud StorageRemove Duplicate Files in Google Drive19 stepsTasks & Project ManagementArchive Duplicate Items in a Notion Database7 stepsData Sync & ETLSync Mastodon bookmarks to Wallabag with Data Tables and duplicate checks15 stepsBuilding Blocks & UtilitiesPrevent Duplicate Webhook Runs with a Redis Lock24 steps