Skip to main content

Google Drive duplicate file manager

Workflow preview

Workflow preview
100%
Google Drive duplicate file manager preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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

Best for

  • File Management automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.set, n8n-nodes-base.filter, n8n-nodes-base.code, n8n-nodes-base.stickynote, n8n-nodes-base.googledrive, n8n-nodes-base.noop, n8n-nodes-base.if, n8n-nodes-base.googledrivetrigger

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Ventsislav Minev.

Original n8n.io source

1.1 Workflow description

Title
Google Drive duplicate file manager
Workflow name
Google Drive duplicate file manager

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.

What it Solves:

  • Saves storage space πŸ’Ύ.
  • Reduces file confusion πŸ˜•βž‘οΈπŸ™‚.
  • Automates tedious cleanup tasks πŸ€–.

How it works:

  1. Trigger: Monitors a Google Drive folder for new files.
  2. Configuration: Sets rules for keeping and handling duplicates.
  3. Find Duplicates: Identifies duplicate files based on their content (MD5Checksum).
  4. Action: Either moves duplicates to trash or renames them.

Setup Guide:

  1. Google Drive Trigger ⏰:
    • Set up the trigger to watch a specific folder or your entire drive (use caution with the root folder! ⚠️).
    • Configure the polling interval (default: every 15 minutes).
  2. Config Node βš™οΈ:
    • keep: Choose whether to keep the "first" or "last" uploaded file (default: "last").
    • action: Select "trash" to delete duplicates or "flag" to rename them with "DUPLICATE-" (default: "flag").
    • owner & folder: Taken from the trigger. Only change if needed.

Key Considerations:

  • Google Drive API limits: Be mindful of API usage.
  • Folder Scope: The workflow handles one folder depth by default. (WARNING: If configured to work with the Root folder / all files in all sub-directories are processed so USE THIS OPTION WITH CAUTION since the workflow might trash/rename important files)
  • Google Apps: Google docs are ignored since they are not actual binary-files and their content can't be compared.

Enjoy your clean Google Drive! ✨

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Config

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 2 - Edit Fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 3 - Filter

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.2

Block 4 - Deduplicate Keep First

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 5 - Deduplicate Keep Last

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 6 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Send Duplicates to Trash

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 9 - No Operation, do nothing

Type / Role
n8n-nodes-base.noOp - noOp
Config choices
Version 1

Block 10 - Is Flagged

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 11 - Google Drive Trigger

Type / Role
n8n-nodes-base.googleDriveTrigger - googleDriveTrigger
Config choices
Version 1

Block 12 - Drop Google Apps files

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.2

Block 13 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Working Folder

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 16 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Google Drive

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 19 - Keep First/Last

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 20 - Trash/Flag Duplicates

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

3. Summary Table

Workflow Google Drive duplicate file manager
Complexity advanced
Nodes 20
Categories File Management
Author Ventsislav Minev
Published 10 Apr 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3512/3512.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Google Drive duplicate file manager do?

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

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your File Management use case.