IT OPS

Cloudflare Pages cache sweep with shell reclaim calc and Axiom + Slack report

Weekly, pulls Cloudflare Pages deployment data, runs a shell script to compute reclaimable storage and rank the bloatiest projects, deletes stale builds.

CategoryIT Ops
Enginesim
Difficultyadvanced
Triggerschedule
Steps6
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerWeekly schedule starts the sweep
  • ActionPull deployment inventory across projectsCloudflareCloudflare
  • ActionShell script computes reclaim and ranks bloatShell
  • ActionDelete stale builds identified by the scriptCloudflareCloudflare
  • ActionLog structured run record to AxiomAxiom
  • OutputPost ranked weekly digest to SlackSlack

What it does

This is the reporting-heavy weekly sweep. It collects deployment metadata from Cloudflare across every Pages project, hands it to a shell script that computes reclaimable bytes and ranks projects from most to least bloated, then deletes the stale builds. The run is logged to Axiom as a single structured event, and a human-readable ranked digest is posted to Slack so the team sees which projects are driving storage growth.

When to use it

Use this when you want one weekly artifact that both reclaims space and tells the team where bloat is concentrated, so cleanup effort and retention policy changes go to the noisiest projects first.

How it works

  1. 1A weekly schedule starts the sweep.
  2. 2Cloudflare returns deployment inventory across all projects.
  3. 3A shell step computes reclaimable storage and ranks projects by bloat.
  4. 4Cloudflare deletes the stale builds the script identified.
  5. 5Axiom ingests the structured run record with totals and per-project figures.
  6. 6Slack receives the ranked weekly digest.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect CloudflareWorkers, Pages, R2, KV — the edge stack.
  2. 2
    Connect ShellRun sandboxed commands inside the workspace.
  3. 3
    Connect AxiomLog streams, queries, dashboards.
  4. 4
    Connect SlackChannels, DMs, threads, mentions.
  5. 5
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  6. 6
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  7. 7
    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.