Automate Cloudflare R2 File Cleanup with Telegram Alerts
This workflow automates the deletion of files older than two weeks from a Cloudflare R2 bucket and sends a Telegram notification for each deleted file. It operates on a daily schedule.
The workflow begins with a scheduled trigger that initiates daily at a specified hour. It retrieves all files from a designated folder in a Cloudflare R2 bucket using the S3 API. A code node filters these files, selecting those older than 14 days for deletion. Each selected file is then deleted from the bucket, and a Telegram message is sent to notify about the deletion, ensuring you are informed of the cleanup process.
Platform
n8n
Category
Business Operations & ERPs
Price
Free
Creator
Eva Kowalski
s3
code
telegram
stickyNote
scheduleTrigger
How to import this workflow into n8n
1Purchase or download the workflow to get the n8n workflow JSON file.
2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
3Open each node marked with a credential warning and connect your own accounts and API keys.
4Run the workflow once manually to verify the data flow, then toggle it to Active.