Auto-cleanup of Cloudflare R2 files older than 2 weeks (+ Telegram notifications)
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 workflow once a day at a specified hour (e.g., 9 AM). 📦 S3 Node – List Files Retrieves all objects from a specific folder (prefix) in a Cloudflare R2 bucket using the S3 API. 🔎 Code Node – Filter Files Older Than 2 Weeks Filters the retrieve
At a glance
Auto-cleanup of Cloudflare R2 files older than 2 weeks (+ Telegram notifications) is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Telegram. It's free to download. Follow the 5-step import below to go live in minutes.
- Platform
- n8n
- Connects
- Telegram
- Modules
- 5
- Price
- Free
- Version
- v1.0

About this workflow
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 workflow once a day at a specified hour (e.g., 9 AM). 📦 S3 Node – List Files Retrieves all objects from a specific folder (prefix) in a Cloudflare R2 bucket using the S3 API. 🔎 Code Node – Filter Files Older Than 2 Weeks Filters the retrieved files by comparing their LastModified timestamps to the current date. Files older than 14 days (2 weeks) are selected for deletion. 🗑️ S3 Node – Delete File Deletes each filtered file from the R2 bucket. 📨 Telegram Node – Notify Deletion Sends a Telegram message with the name of the deleted file to a specified chat ID. The message includes:
How to import this n8n workflow
- 1
Download the workflow JSON file after purchase.
- 2
Open n8n → click the menu → Import from File.
- 3
Select the downloaded JSON and import.
- 4
Set up credentials for each node that requires them.
- 5
Click Execute Workflow to test, then activate.
Setup guide
Setup guide included
Purchase to unlock the full step-by-step guide
Related N8n workflows
Get real-time NFT Marketplace insights with OpenSea Marketplace Agent Tool
Free AI image generator - n8n automation workflow with Gemini/ChatGPT
AI secretary for scheduling with WhatsApp and Telegram
Extract Amazon product data to Sheets with Olostep API
⚡ Text → Viral Shorts | AI Video Studio in Telegram /w Setup Video
Generate audio documentaries from web articles with ElevenLabs and BrowserAct
Screen and score investment deals with AI using OpenAI, Gmail, and Telegram
Daily AI news digest to LinkedIn posts with OpenAI GPT and RSS feeds
Reviews
No reviews yet
Be the first to buy and share your experience.
Leave a review
Sign in to share your experience with this workflow.
Create a free account to purchase workflows.
- JSON blueprint — instant download
- Setup guide PDF included
- 5 downloads · valid 30 days
- Works with n8n
Need help setting this up?
Book a 3-hour live setup session with an Agility consultant.
- Configure live on Google Meet / Zoom
- Free follow-up if workflow has defects
- Platform expert assigned to you