Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

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

  1. Config
  2. Edit Fields
  3. Filter
  4. Deduplicate Keep First
  5. Deduplicate Keep Last
  6. Send Duplicates to Trash
  7. No Operation, do nothing
  8. Is Flagged
  9. Google Drive Trigger
  10. Drop Google Apps files
  11. Working Folder
  12. Google Drive
  13. Keep First/Last
  14. Trash/Flag Duplicates

Similar automations