Templates / Google Drive duplicate file manager

Google Drive duplicate file manager

Ready for 3.0

by Ventsislav Minev ✓ · 1,424 views · created 2025-04-10 · File Management

Ready 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).

  1. Config (Edit Fields (Set)): sets 4 fields: keep, action, owner…
  2. Working Folder (Google Drive): work with file folder
  3. Drop Google Apps files (Filter): keeps only the items that match a condition
  4. Keep First/Last (Switch): routes items into 2 branches
  5. Deduplicate Keep Last (Code): runs custom JavaScript code
  6. Deduplicate Keep First (Code): runs custom JavaScript code
  7. Edit Fields (Edit Fields (Set)): sets 3 fields: isDuplicate, id, name
  8. Filter: keeps only the items that match a condition
  9. Trash/Flag Duplicates (Switch): routes items into 2 branches
  10. Send Duplicates to Trash (Google Drive): delete file

…plus 2 more steps. See the full node list below.

Services it uses

Google Drive

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)

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.…

Excerpt from Ventsislav Minev's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.