Google Drive Duplicate File Cleaner
detail.loadingPreview
Automatically clean up your Google Drive by identifying and managing duplicate files. This workflow uses MD5 checksums for accurate detection, allowing you to either trash redundant copies or flag them for review, keeping your cloud storage organized effortlessly.
About This Workflow
Tired of cluttered Google Drive storage filled with identical files? This powerful n8n workflow provides an automated solution to detect and manage duplicates using robust MD5 checksum validation. It intelligently scans a specified Google Drive folder, identifying files with identical content. You gain full control over how duplicates are handled: choose to keep either the first or last version, and then decide whether to send the redundant copies to the trash or rename them with a clear 'DUPLICATE-' flag. Ideal for maintaining a pristine and efficient digital workspace, this workflow ensures you only keep the files you truly need, preventing storage bloat and improving file discoverability.
Key Features
- MD5 Checksum Based Detection: Accurately identifies identical file content, not just names or sizes.
- Flexible Duplicate Retention: Choose to keep the
firstorlastcreated version of a duplicate set. - Customizable Action on Duplicates: Automatically
trashunwanted duplicates orflagthem by renaming for manual review. - Targeted Folder & Owner Scope: Configure the workflow to scan specific Google Drive folders and files owned by a particular user.
- Prevent Re-flagging: Intelligent logic ensures already flagged duplicates are not processed again, avoiding redundant actions.
How To Use
- Configure Core Settings: In the
Confignode, set thekeepparameter to eitherfirstorlastto specify which duplicate to retain (based on creation time). Then, set theactionparameter totrashto automatically delete duplicates orflagto rename them with a 'DUPLICATE-' prefix. - Define Scope (Optional): The
ownerandfolderparameters in theConfignode are usually populated dynamically from the trigger. Adjust these only if you need to manually specify a different owner email or target folder ID. - Adjust File Source (If Applicable): This template assumes files are being passed into the deduplication logic. If your workflow includes a node to fetch files (e.g., a Google Drive List Files node), ensure it's configured to target the correct folder. The current setup implies working on a specific folder at depth level 1; consider removing or modifying the filter if you need to scan nested folders or the entire drive.
- Connect Google Drive Credentials: Ensure the
Send Duplicates to Trashnode (and any Google Drive List Files node) is connected to a valid Google Drive account credential with appropriate permissions. - Activate and Test: After configuration, activate the workflow and perform a test run on a small, safe set of files to ensure it behaves as expected before applying it to your main data.
Apps Used
Workflow JSON
{
"id": "27f92647-3063-4a1e-8428-1021de87cdca",
"name": "Google Drive Duplicate File Cleaner",
"nodes": 5,
"category": "Operations",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 27f92647-3063...
About the Author
N8N_Community_Pick
Curator
Hand-picked high quality workflows from the global community.
Statistics
Related Workflows
Discover more workflows you might like
Universal CSV to JSON API Converter
Effortlessly transform CSV data into structured JSON with this versatile n8n workflow. Integrate it into any application as a custom API endpoint, supporting various input methods including file uploads and raw text.
Instant WooCommerce Order Notifications via Telegram
When a new order is placed on your WooCommerce store, instantly receive detailed notifications directly to your Telegram chat. Stay on top of your e-commerce operations with real-time alerts, including order specifics and a direct link to view the order.
On-Demand Microsoft SQL Query Execution
This workflow allows you to manually trigger and execute any SQL query against your Microsoft SQL Server database. Perfect for ad-hoc data lookups, administrative tasks, or quick tests, giving you direct control over your database operations.