# Vercel CLI can now set new projects to expire

published: 2026-11-06T21:05:40.881Z
topic: infrastructure
source: https://vercel.com/changelog/vercel-cli-can-now-set-new-projects-to-expire
url: https://aiagentnews.io/stories/vercel-cli-can-now-set-new-projects-to-expire

Vercel CLI lets developers set a new project to expire when they deploy it, and expired projects are deleted automatically. The feature is available in CLI v65.12.0 and later.

Developers can now pass the --delete-project-after flag to vercel deploy with a duration, so the project is deleted automatically once that time passes. The flag suits prototypes, demos and test apps that would otherwise need manual cleanup. For example, vercel deploy --delete-project-after 1d deploys a project that expires after one day.

Supported durations are 1h, 1d, 1w, 2w and 30d, and the CLI prints the date and time when the project will expire. The flag only takes effect when vercel deploy creates the project. Deploying to an existing project with the flag leaves its expiration unchanged and makes the CLI print a warning.

To remove a project's expiration, run vercel project keep followed by the project name. Vercel says users need Vercel CLI v65.12.0 or later to use the feature.

## Why it matters if you build agents

Agents that create temporary deployments for testing or previews can clean them up automatically instead of running separate deletion steps. Pipelines that deploy to existing projects need to create the project first, since the flag has no effect on those. Check the CLI version in automated environments before relying on the flag.
