# Clean vercel deployment storage

> Clean vercel deployment storage is an open-source agent skill for cloud and infrastructure. Bulk-delete old Vercel deployments and set retention to free up deployment storage. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/ruan-cat/monorepo/tree/main/ai-plugins/low-frequency-skill/skills/clean-vercel-deployment-storage
- **Repository:** https://github.com/ruan-cat/monorepo
- **GitHub stars:** 5
- **License:** MIT
- **Skill name:** clean-vercel-deployment-storage
- **Collection:** https://github.com/ruan-cat/monorepo
- **Categories:** [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure)
- **Listing updated:** 2026-12-04

## About

This skill walks an agent through clearing out a Vercel team's deployment storage when the quota is full or close to it. It favors the Vercel REST API with a bearer token over the MCP server, which cannot delete, and over the CLI, which is noted as fragile when run in parallel. The workflow is strictly ordered: a scan that runs a permission preflight and writes a dry-run report, a summary the user must approve before anything is removed, a small trial deletion followed by the full run, and finally retention settings and a verification pass.

The bundled TypeScript scripts, run with pnpm and tsx, handle scanning, executing deletions with limited concurrency, configuring retention and verifying state. The default plan keeps the newest production deployment per project and marks the rest for deletion. Projects themselves are never removed, only deployments, and the platform's own retention exceptions for recent Ready and aliased deployments are respected.

Reference notes cover the tool channel boundaries, endpoint details, valid retention values, token setup, the 30-day recovery window and a worked incident with credential failures. The skill expects a Vercel team ID and an API token with owner or developer rights, and its instructions are written in Chinese.

## When your agent uses it

> 使用时机：当 Vercel Deployment Storage 部署存储额度将满或已满、需要批量删除历史部署、需要为 Vercel 项目配置 Deployment Retention 自动清理、或删除部署时遇到 vercel api 要求确认、CLI 凭据失效等问题时使用。

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs TypeScript scripts](https://github.com/ruan-cat/monorepo/tree/HEAD/ai-plugins/low-frequency-skill/skills/clean-vercel-deployment-storage)
- [Network calls found in its scripts](https://github.com/ruan-cat/monorepo/tree/HEAD/ai-plugins/low-frequency-skill/skills/clean-vercel-deployment-storage)
- [License: MIT](https://github.com/ruan-cat/monorepo/tree/HEAD/ai-plugins/low-frequency-skill/skills/clean-vercel-deployment-storage)

## Features

- **Permission preflight check:** Verifies token identity, team membership and owner or developer role before any scan result is produced.
- **Dry-run deletion report:** Builds a per-project list of deployments to delete, keeping the newest production deployment, for review first.
- **Gated bulk deletion:** Runs a small trial batch, then the full deletion with limited concurrency, treating already-missing deployments as removed.
- **Automatic deployment retention:** Configures Vercel Deployment Retention across all projects so storage does not fill up again.
- **Post-cleanup verification:** Re-checks deployment state after deletion to confirm the final result.

## Good for

- Free up Vercel deployment storage when the team quota is almost full
- Delete old preview and production deployments across many projects in bulk
- Set automatic expiration of deployments on all Vercel projects
- Fix a failed Vercel CLI deletion caused by expired credentials

## Install

### Claude Code

This skill ships in the `low-frequency-skill` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add ruan-cat/monorepo
/plugin install low-frequency-skill@ruan-cat-tools
```

Or copy only this skill to `~/.claude/skills/clean-vercel-deployment-storage`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/clean-vercel-deployment-storage &&
cp -R "$tmp/ai-plugins/low-frequency-skill/skills/clean-vercel-deployment-storage" ~/.claude/skills/clean-vercel-deployment-storage &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/clean-vercel-deployment-storage` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/clean-vercel-deployment-storage` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/clean-vercel-deployment-storage &&
cp -R "$tmp/ai-plugins/low-frequency-skill/skills/clean-vercel-deployment-storage" ~/.agents/skills/clean-vercel-deployment-storage &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/clean-vercel-deployment-storage` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/clean-vercel-deployment-storage` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/clean-vercel-deployment-storage &&
cp -R "$tmp/ai-plugins/low-frequency-skill/skills/clean-vercel-deployment-storage" ~/.cursor/skills/clean-vercel-deployment-storage &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/clean-vercel-deployment-storage` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/ruan-cat/monorepo.git --path ai-plugins/low-frequency-skill/skills/clean-vercel-deployment-storage
```

Or copy the folder to `~/.gemini/skills/clean-vercel-deployment-storage` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/clean-vercel-deployment-storage`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/clean-vercel-deployment-storage &&
cp -R "$tmp/ai-plugins/low-frequency-skill/skills/clean-vercel-deployment-storage" ~/.copilot/skills/clean-vercel-deployment-storage &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/clean-vercel-deployment-storage` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ruan-cat/monorepo.git
```

Then copy `monorepo/ai-plugins/low-frequency-skill/skills/clean-vercel-deployment-storage` into your agent's skills folder as `clean-vercel-deployment-storage`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

A Vercel team ID and an API token whose identity has owner or developer role on that team. The scripts are TypeScript run via pnpm dlx tsx.

### Does Clean vercel deployment storage delete projects?

No. The skill states that projects are never deleted, only deployments.

### Will Clean vercel deployment storage delete without asking?

No. The workflow requires a dry-run list and user confirmation before the full execute step, and execute only accepts a report with a passing preflight.

### Which deployments are kept?

The default dry-run keeps the newest production deployment per project. The platform also keeps recent Ready deployments and those with aliases.

### How do I install Clean vercel deployment storage in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/clean-vercel-deployment-storage to use it in all your projects, or to .claude/skills/clean-vercel-deployment-storage in one project. Or install the low-frequency-skill plugin, which includes it: /plugin marketplace add ruan-cat/monorepo, then /plugin install low-frequency-skill@ruan-cat-tools.

### Does Clean vercel deployment storage run scripts?

Yes. It runs TypeScript scripts. Its scripts contain network calls. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Clean vercel deployment storage?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Clean vercel deployment storage?

The closest alternatives to Clean vercel deployment storage are Vercel CLI with tokens, Deploy to vercel, Vercel optimize, Deploy and Vercel deploy.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Vercel CLI with tokens](https://ai-powered.com/skills/vercel-cli-with-tokens): Vercel CLI with tokens is a free agent skill for cloud and infrastructure.
- [Deploy to vercel](https://ai-powered.com/skills/deploy-to-vercel-chicio): Deploy to vercel is an open-source agent skill for cloud and infrastructure.
- [Vercel optimize](https://ai-powered.com/skills/vercel-optimize): Vercel optimize is an open-source agent skill for cloud and infrastructure.
- [Deploy](https://ai-powered.com/skills/deploy-maxwell2732): Deploy is an open-source agent skill for cloud and infrastructure.
- [Vercel deploy](https://ai-powered.com/skills/vercel-deploy): Vercel deploy is a free agent skill for cloud and infrastructure.
- [Deploy to vercel](https://ai-powered.com/skills/deploy-to-vercel): Deploy to vercel is a free agent skill for cloud and infrastructure.
- [Vibe safe deploy](https://ai-powered.com/skills/vibe-safe-deploy): Vibe safe deploy is an open-source agent skill for cloud and infrastructure.
- [Runpod lifecycle crud](https://ai-powered.com/skills/runpod-lifecycle-crud): Runpod lifecycle crud is an open-source agent skill for cloud and infrastructure.

---
Source: https://ai-powered.com/skills/clean-vercel-deployment-storage
