---
id: 20261107-T0-19
title: "Vercel CLI支持部署时设定项目自动过期删除"
title_en: "Vercel CLI Adds Auto-Expiring Projects on Deploy"
url: https://ai.daily.yangsir.net/daily/20261107-T0-19
issue_date: 2026-11-07
publish_date: 2026-11-06T18:00:00.000Z
category: release
source_name: "Vercel Blog"
source_url: https://vercel.com/changelog/vercel-cli-can-now-set-new-projects-to-expire
---

# Vercel CLI支持部署时设定项目自动过期删除

Vercel CLI新增--delete-project-after参数，部署时可为新项目设定自动过期时间，到期后项目自动删除。支持1小时、1天、1周、2周等时长。该功能面向原型、演示和测试应用，省去手动清理的麻烦。开发者用vercel deploy加参数即可启用，适合临时性项目快速上线后自动回收，减少闲置资源和无用项目堆积。

## English Version

**Vercel CLI Adds Auto-Expiring Projects on Deploy**

Vercel CLI now lets developers set a new project to expire at deploy time using the --delete-project-after flag. Supported durations include 1h, 1d, 1w, and 2w. Expired projects are deleted automatically, so prototypes, demos, and test apps no longer need manual cleanup. Developers enable it by running vercel deploy with the flag and a duration, making it practical for temporary projects that should be reclaimed after use.

---

**来源**：[Vercel Blog](https://vercel.com/changelog/vercel-cli-can-now-set-new-projects-to-expire)

**详情页**：https://ai.daily.yangsir.net/daily/20261107-T0-19

---

*智语观潮 · Daily — https://ai.daily.yangsir.net/llms.txt*