Auto-cleanup of Cloudflare R2 files older than 2 weeks (+ Telegram notifications)
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This workflow has 5 nodes and runs on a schedule (every day at 09:00). Along the way it connects S3 and Telegram.
How it runs
Trigger: On a schedule (every day at 09:00).
- S (S3): get many
- Code: runs custom JavaScript code
- S (S3): delete
- Telegram: uses Telegram
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (4)
- S3
n8n-nodes-base.s3 - Code
n8n-nodes-base.code - Telegram
n8n-nodes-base.telegram - Schedule Trigger
n8n-nodes-base.scheduleTrigger
From the author
This workflow automatically connects to a Cloudflare R2 bucket (via S3-compatible API), filters out files older than 14 days, deletes them, and then sends a Telegram notification for each deletion. It runs on a daily schedule. 🕘 Schedule Trigger Executes the…