🧹 Archive (delete) duplicate items from a Notion database
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-12-01.
What this workflow does
This workflow has 7 nodes and runs on Notion events (plus 1 other trigger). Along the way it connects Notion.
How it runs
Trigger: On Notion events (plus 1 other trigger).
- Get pages from database (Notion): get many (database page)
- Format items properly (Edit Fields (Set)): sets 2 fields: id, property_to_check
- Aggregate: combines items into one
- Filter duplicates (Code): runs custom JavaScript code
- Archive pages (Notion): archive
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 (6)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Notion
n8n-nodes-base.notion - Aggregate
n8n-nodes-base.aggregate - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Notion Trigger
n8n-nodes-base.notionTrigger
From the author
🧑💼 Who is this for? If you’re using Notion to manage a database (like saving links, tasks, notes, or anything really), and it’s starting to get messy with duplicate entries, this workflow is for you. It’s especially useful if you want to keep things tidy…