Developer & DevOps

Archive empty pages in your Notion database automatically

10 nodes 275 152 Scheduled trigger
Download

Workflow Description

A scheduled automation that regularly scans your Notion database, identifies pages with no content, and archives them automatically. This keeps your workspace organized and eliminates clutter while preserving data integrity through archival rather than deletion.

How it works

  1. 1.Execute the automation at scheduled intervals using a time-based trigger
  2. 2.Query the Notion database to retrieve all pages and their content status
  3. 3.Divide pages into batches for efficient processing
  4. 4.Check each page to identify those with no content or blank entries
  5. 5.Archive empty pages in Notion to remove them from active view

Use cases

  • Regular maintenance of large Notion databases with accumulated unused pages
  • Cleaning up team workspaces where blank pages accumulate over time
  • Improving database performance by reducing visual clutter and inactive entries

Requirements

  • Active Notion account with access permissions to the target database
  • Clear definition of what constitutes an empty page (absence of text, media, or content blocks)

Service Value

Ready-made workflow template for automation delivery and service execution.

Apps Used

Notion Split In Batches Schedule

Details

Trigger Scheduled trigger
Nodes 10
Apps 3
Views 275
Downloads 152

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (10)

Get All Databases

Notion

#1

Get All Database Pages

Notion

#2

Get Page Blocks

Notion

#3

Process Blocks

Function

#4

SplitInBatches

Split In Batches

#5

Check for empty properties

Function

#6

Archive Page

Notion

#7

If toDelete

If

#8

If Empty Properties

If

#9

Every day @ 2am

Cron

#10