Templates / Archive empty pages in Notion database

Archive empty pages in Notion database

Needs changes

by Jonathan ✓ · 2,007 views · created 2022-02-21 · Personal Productivity

Needs changes. This template uses 2 thing(s) that n8n 3.0 removes: Function (legacy), Cron. 2 breaking item(s) found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 10 nodes and runs on a schedule (legacy Cron node). Along the way it connects Notion.

How it runs

Trigger: On a schedule (legacy Cron node).

  1. Get All Databases (Notion): get many (database)
  2. Get All Database Pages (Notion): get many (database page)
  3. Check for empty properties (Function): runs custom JavaScript (legacy Function node)
  4. If: checks a condition and branches into true / false
  5. SplitInBatches (Loop Over Items (Split in Batches)): loops over the items in batches
  6. Get Page Blocks (Notion): get many (block)
  7. Process Blocks (Function): runs custom JavaScript (legacy Function node)
  8. If: checks a condition and branches into true / false
  9. Archive Page (Notion): archive

Services it uses

Notion

Before you upgrade to n8n 3.0

2 things in this workflow are removed in n8n 3.0. Fix them before you upgrade:

  • Function (legacy) in Process Blocks, Check for empty properties: replace with Code node, mode 'Run Once for All Items'.
  • Cron in Every day @ 2am: replace with Schedule Trigger.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Published 2022 — 25% of templates published before 2025 need changes for 3.0. See how template age affects 3.0 readiness →

Removed in 3.0Replace with
Function (legacy)
Process Blocks, Check for empty properties
Code node, mode 'Run Once for All Items'
Cron
Every day @ 2am
Schedule Trigger

Nodes used (5)

From the author

This workflow will archive empty pages in your Notion databases, Add your n8n integration to the Notion databases that you want to process. To configure this workflow set the Notion credentials in the 4 Notion nodes and if needed change the time in the Cron…

Excerpt from Jonathan'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.