Skip to content
NEWError doctor and Watchtower: failed n8n runs explained in plain words, and emailed to you. See what is new

Library / Data Sync & ETL

Data Sync & ETL

Archive Empty Pages in a Notion Database

On a schedule, it reads every page of Notion databases, checks which have empty properties and content and archives them.

What it does

# Archive empty pages in Notion Database ## Overview Automated workflow: Archive empty pages in Notion Database. This workflow processes data and performs automated tasks. ## Workflow Details - Total Nodes: 11 - Node Types: 6 - Error Handling: ✅ Implemented - Security: ✅ Hardened (no sensitive data) - Documentation: ✅ Complete ## Node Breakdown - Get All Databases: notion - Get All Database Pages: notion - Get Page Blocks: notion - Process Blocks: function - SplitInBatches: splitInBatches - Check for empty properties: function - Archive Page: notion - If toDelete: if - If Empty Properties: if - Every day @ 2am: cron - ... and 1 more nodes ## Usage Instructions 1. Configure Credentials: Set up all required API keys and credentials 2. Update Variables: Replace any placeholder values with actual data 3. Test Workflow: Run in test mode to verify functionality 4. Deploy: Activate the workflow for production use ## Security Notes - All sensitive data has been removed or replaced with placeholders - Error handling is implemented for reliability - Follow security best practices when configuring credentials ## Troubleshooting - Check error logs if workflow fails - Verify all credentials are properly configured - Ensure all required services are accessible

The steps

  1. Get All Databases
  2. Get All Database Pages
  3. Get Page Blocks
  4. Process Blocks
  5. SplitInBatches
  6. Check for empty properties
  7. Archive Page
  8. If toDelete
  9. If Empty Properties
  10. Every day @ 2am
  11. Error Handler

Similar automations