Templates / Auto-cleanup of Cloudflare R2 files older than 2 weeks (+ Telegram notifications)

Auto-cleanup of Cloudflare R2 files older than 2 weeks (+ Telegram notifications)

Ready for 3.0

by Mobder · 589 views · created 2025-05-27 · File Management

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

  1. S (S3): get many
  2. Code: runs custom JavaScript code
  3. S (S3): delete
  4. Telegram: uses Telegram

Services it uses

S3Telegram

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)

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…

Excerpt from Mobder's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.