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 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:
Related Templates
AI Email Classifier & Auto-Delete for Gmail (SPAM/OFFER Cleaner)
This workflow is designed for freelancers, solopreneurs, and business owners who receive a high volume of irrelevant mes...
Generate Food Recipes from Gmail & Form Requests with Ollama & Llama 3.2
This n8n template demonstrates how to create an intelligent food recipe assistant that accepts requests via Gmail and we...
Automatic News Summarization & Email Digest with GPT-4, NewsAPI and Gmail
๐ฐ AI News Digest Agent: Auto News Summarizer & Email Newsletter Create an intelligent news curation system that automat...
๐ Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments