IT OPS

Cloudflare Pages cleanup with Slack approval gate before deletion

Builds a dry-run list of stale Cloudflare Pages deployments, posts the count and reclaimable storage to Slack with approve/cancel buttons.

CategoryIT Ops
Enginesim
Difficultyintermediate
Triggermanual
Steps6
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerOperator triggers cleanup run
  • ActionDry-run list eligible deployments and sizesCloudflareCloudflare
  • ActionPost candidate summary to Slack with approve buttonsSlack
  • LogicBranch on approval response
  • ActionDelete approved deploymentsCloudflareCloudflare
  • OutputConfirm reclaimed storage in Slack threadSlack

What it does

This is the human-in-the-loop version of cache cleanup. Instead of deleting automatically, it computes which Cloudflare Pages deployments are eligible for removal, summarizes how many builds and how much storage would be reclaimed, and asks an operator in Slack to approve. Deletion happens only after an explicit approval click, and the original Slack thread is updated with the final reclaimed total.

When to use it

Use this for high-stakes or shared Pages projects where an engineer should eyeball the cleanup before anything is purged, but you still want the heavy lifting automated.

How it works

  1. 1An operator triggers the run manually or via webhook.
  2. 2Cloudflare returns deployments and their sizes; a dry-run computes the eligible set.
  3. 3Slack posts the candidate count and reclaimable bytes with Approve and Cancel actions.
  4. 4A logic step waits on the response and branches: cancel ends the run, approve proceeds.
  5. 5Cloudflare deletes the approved deployments and reports freed storage.
  6. 6Slack updates the thread with the confirmed reclaim total.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect CloudflareWorkers, Pages, R2, KV — the edge stack.
  2. 2
    Connect SlackChannels, DMs, threads, mentions.
  3. 3
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  4. 4
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  5. 5
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.