Automate Notion Database Cleanup: Archive Empty Pages Effortlessly
detail.loadingPreview
Keep your Notion databases pristine by automatically archiving pages that have become empty. This workflow scans your databases, identifies vacant pages, and archives them with a daily scheduled trigger.
About This Workflow
Tired of cluttered Notion databases filled with unused or incomplete pages? This powerful n8n workflow automates the tedious task of identifying and archiving empty pages. It intelligently connects to your Notion account, retrieves all databases, and then meticulously checks each page's properties and content. If a page is found to have no content or missing essential properties, it's automatically archived, ensuring your Notion workspace remains organized and efficient. Schedule it to run daily, and reclaim your focus from manual cleanup.
Key Features
- Automated Empty Page Detection: Intelligently identifies pages lacking content or key properties.
- Scheduled Execution: Runs automatically every day at 2 AM to maintain cleanliness.
- Notion Integration: Seamlessly connects with your Notion account.
- Database-Wide Scanning: Processes all pages within selected Notion databases.
- Safe Archiving: Archives pages, preserving them without deletion.
How To Use
- Set Up Cron Trigger: Configure the 'Every day @ 2am' node to schedule the workflow.
- Connect Notion: Authorize your Notion account via credentials in the 'Get All Databases' node.
- Fetch Databases & Pages: The workflow automatically retrieves all databases and their respective pages.
- Check for Empty Properties: Utilize the 'Check for empty properties' function node to mark pages with missing data.
- Process Page Blocks: If properties are not empty, the 'SplitInBatches' and 'Get Page Blocks' nodes will analyze the page's content.
- Determine Archival: The 'Process Blocks' and 'If toDelete' nodes decide whether a page is truly empty and requires archiving.
- Archive Pages: The 'Archive Page' node moves identified empty pages to your Notion archive.
Apps Used
Workflow JSON
{
"id": "e531bdcd-2478-4e65-895a-4f11c117b2f1",
"name": "Automate Notion Database Cleanup: Archive Empty Pages Effortlessly",
"nodes": 25,
"category": "Operations",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: e531bdcd-2478...
About the Author
Free n8n Workflows Official
System Admin
The official repository for verified enterprise-grade workflows.
Statistics
Related Workflows
Discover more workflows you might like
Universal CSV to JSON API Converter
Effortlessly transform CSV data into structured JSON with this versatile n8n workflow. Integrate it into any application as a custom API endpoint, supporting various input methods including file uploads and raw text.
Instant WooCommerce Order Notifications via Telegram
When a new order is placed on your WooCommerce store, instantly receive detailed notifications directly to your Telegram chat. Stay on top of your e-commerce operations with real-time alerts, including order specifics and a direct link to view the order.
On-Demand Microsoft SQL Query Execution
This workflow allows you to manually trigger and execute any SQL query against your Microsoft SQL Server database. Perfect for ad-hoc data lookups, administrative tasks, or quick tests, giving you direct control over your database operations.