Templates / 🧹 Archive (delete) duplicate items from a Notion database

🧹 Archive (delete) duplicate items from a Notion database

Ready for 3.0

by Lucía Maio Brioso ✓ · 1,174 views · created 2025-05-01 · Personal Productivity

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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

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

  1. Get pages from database (Notion): get many (database page)
  2. Format items properly (Edit Fields (Set)): sets 2 fields: id, property_to_check
  3. Aggregate: combines items into one
  4. Filter duplicates (Code): runs custom JavaScript code
  5. Archive pages (Notion): archive

Services it uses

Notion

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)

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…

Excerpt from Lucía Maio Brioso'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.