Google Drive duplicate file manager
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This workflow has 14 nodes and runs on Google Drive events (file created). Along the way it connects Google Drive.
How it runs
Trigger: On Google Drive events (file created).
- Config (Edit Fields (Set)): sets 4 fields: keep, action, owner…
- Working Folder (Google Drive): work with file folder
- Drop Google Apps files (Filter): keeps only the items that match a condition
- Keep First/Last (Switch): routes items into 2 branches
- Deduplicate Keep Last (Code): runs custom JavaScript code
- Deduplicate Keep First (Code): runs custom JavaScript code
- Edit Fields (Edit Fields (Set)): sets 3 fields: isDuplicate, id, name
- Filter: keeps only the items that match a condition
- Trash/Flag Duplicates (Switch): routes items into 2 branches
- Send Duplicates to Trash (Google Drive): delete file
…plus 2 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (8)
- Edit Fields (Set)
n8n-nodes-base.set - Filter
n8n-nodes-base.filter - Code
n8n-nodes-base.code - Google Drive
n8n-nodes-base.googleDrive - No Operation, do nothing
n8n-nodes-base.noOp - If
n8n-nodes-base.if - Google Drive Trigger
n8n-nodes-base.googleDriveTrigger - Switch
n8n-nodes-base.switch
From the author
Google Drive Duplicate File Manager 🧹📁 Purpose: Automate the process of finding and managing duplicate files in your Google Drive. Who's it for? Individuals and teams aiming to streamline their Google Drive. Anyone tired of manual duplicate file cleanup.…