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
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.

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:
Download the workflow JSON file after purchase.
Open n8n β click the menu β Import from File.
Select the downloaded JSON and import.
Set up credentials for each node that requires them.
Click Execute Workflow to test, then activate.
Setup guide included
Purchase to unlock the full step-by-step guide
Discover business leads with Gemini, Brave Search and web scraping
Analyze Landing Page with OpenAI and Get Optimization Tips
Prevent duplicate webhook executions with AARI idempotency gate
Generate trend-based marketing videos with Seedance AI, Perplexity, and GPT
Build a knowledge base chatbot with Jotform, RAG Supabase, Together AI & Gemini
Gmail smart auto-responder with GPT-4o and Google Drive context memory
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.
Need help setting this up?
Book a 3-hour live setup session with an Agility consultant.