# 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 (MD5 Checksum).
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!**
Platform
n8n
Category
File & Document Management
Price
Free
Creator
Ventsislav Minev
if
set
code
noOp
filter
switch
stickyNote
googleDrive
googleDriveTrigger
How to import this workflow into n8n
1Purchase or download the workflow to get the n8n workflow JSON file.
2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
3Open each node marked with a credential warning and connect your own accounts and API keys.
4Run the workflow once manually to verify the data flow, then toggle it to Active.