DEVOPS

Vercel Preview TTL Reaper with Slack Owner Confirmation

Finds Vercel preview deployments older than their TTL, pings each deployment's git author in Slack for keep-or-delete confirmation, and deletes the ones nobody saves.

CategoryDevOps
Enginesim
Difficultyintermediate
Triggerschedule
Steps7
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerDaily schedule fires
  • ActionList Vercel preview deployments + authorsVercelVercel
  • LogicKeep only preview deploys past TTL
  • ActionDM author for Keep/Delete confirmationSlack
  • LogicBranch on response or grace timeout
  • ActionDelete unsaved deploymentsVercelVercel
  • OutputPost reclaimed-environment summary to channelSlack

What it does

Sweeps your Vercel project for preview deployments that have outlived their time-to-live, identifies the engineer who pushed each one, and asks them in Slack whether to keep it. Anything not explicitly saved within the grace window is deleted, reclaiming build minutes and bandwidth.

When to use it

Run it nightly when feature-branch previews pile up after merges. Ideal for teams on Vercel where stale `preview` deployments accumulate and you want owners to make the call rather than blanket-deleting.

How it works

  1. 1A daily schedule fires the run.
  2. 2List all Vercel deployments for the target project and read each one's created timestamp and git author.
  3. 3A filter keeps only `preview` deployments older than the TTL (e.g. 7 days) that aren't aliased to a live URL.
  4. 4For each survivor, send the git author a Slack DM with Keep / Delete buttons and a 24h grace note.
  5. 5A branch routes the response: Keep tags the deployment as protected; Delete (or no reply) proceeds.
  6. 6Delete the unsaved deployments via the Vercel API and post a summary of reclaimed environments to the team channel.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect VercelDeploys, runtime logs, analytics.
  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.