WorkflowNotionOpen

n8n remove duplicate Notion database pages

This n8n workflow finds duplicate pages in a Notion database and archives the extras, leaving one copy of each. It is for people who keep lists, CRMs or content calendars in Notion and end up with repeated entries from imports or integrations.

What it does

Every day, or when a page is added, it gets all pages from the database, aggregates them, formats the property you choose to compare, filters duplicates with a code step and archives them through the Notion node. Archiving in Notion works like deleting.

How to use it

Create a Notion credential, select your database in the Notion nodes, and in the Format items properly node point the comparison field at the property that marks a duplicate.

Requirements and limits

Duplicates are matched on one property only.

More in Notion and the n8n workflow library.

Full text

Front matter
name: 🧹 Archive (delete) duplicate items from a Notion database
description: Triggered on a schedule. Connects Aggregate, Code, Notion, Schedule, Stop And Error. ## 🧹 Archive (delete) extra duplicate items from Notion database ### ABOUT THIS WORKFLOW This n8n workflow automatically gets duplicate database pages based on a property and "archives" them (equivalent to deleting them), leaving just one copy. ### SETUP 1. Create a Notion credential. 2. Add it to the Notion nodes, selecting the appropriate database. 3. In the "Set" node ("Format items properly"), specify a reference to the property you want to check for duplicates and assign it to the field "p
category: Automation
kind: Workflow
software: Aggregate|Code|Notion|Schedule|Stop And Error

🧹 Archive (delete) duplicate items from a Notion database

Triggered on a schedule. Connects Aggregate, Code, Notion, Schedule, Stop And Error. ## 🧹 Archive (delete) extra duplicate items from Notion database

ABOUT THIS WORKFLOW

This n8n workflow automatically gets duplicate database pages based on a property and "archives" them (equivalent to deleting them), leaving just one copy.

SETUP

  1. Create a Notion credential.
  2. Add it to the Notion nodes, selecting the appropriate database.
  3. In the "Set" node ("Format items properly"), specify a reference to the property you want to check for duplicates and assign it to the field "p

Steps

  • Every day (scheduleTrigger)
  • Get pages from database (notion)
  • Aggregate all items (aggregate)
  • Format items properly (set)
  • Filter duplicates (code)
  • Archive pages (notion)
  • When a page is added to the database (notionTrigger)
  • Sticky Note (stickyNote)
  • Sticky Note1 (stickyNote)
  • Sticky Note2 (stickyNote)
  • Sticky Note3 (stickyNote)
  • Error Handler (stopAndError)

Import

Download the JSON from the GitHub source and import it in n8n (Workflows, Import from file).

Source and license

Source: https://github.com/Zie619/n8n-workflows/blob/main/Code/1317_Code_Schedule_Export_Scheduled.md

Author: Zie619, n8n workflow collection. License: MIT.

Shown here with formatting for the web. Keep the author and license notice when you reuse it.

Related entries

There are more like this in the members library

The n8n workflow library holds 1,814 entries. Members can search all of them by meaning and read every one in full.