# vercel cache

The `vercel cache` command is used to manage the cache for your project, such as [CDN cache](/docs/cdn-cache) and [Data cache](https://vercel.com/docs/data-cache).

Learn more about [purging Vercel cache](/docs/cdn-cache/purge).

## Usage

```bash filename="terminal"
vercel cache purge
```

## Extended Usage

```bash filename="terminal"
vercel cache purge --type cdn
```

```bash filename="terminal"
vercel cache purge --type data
```

```bash filename="terminal"
vercel cache invalidate --tag blog-posts
```

```bash filename="terminal"
vercel cache dangerously-delete --tag blog-posts
```

```bash filename="terminal"
vercel cache invalidate --srcimg /api/avatar/1
```

```bash filename="terminal"
vercel cache dangerously-delete --srcimg /api/avatar/1
```

```bash filename="terminal"
vercel cache dangerously-delete --srcimg /api/avatar/1 --revalidation-deadline-seconds 604800
```

## Unique Options

These are options that only apply to the `vercel cache` command.

### tag

The `--tag` option specifies which tag to invalidate or delete from the cache. You can provide a single tag or multiple comma-separated tags. This option works with both `invalidate` and `dangerously-delete` subcommands.

```bash filename="terminal"
vercel cache invalidate --tag blog-posts,user-profiles,homepage
```

### srcimg

The `--srcimg` option specifies a source image path to invalidate or delete from the cache. This invalidates or deletes all cached transformations of the source image. This option works with both `invalidate` and `dangerously-delete` subcommands.

You can't use both `--tag` and `--srcimg` options together. Choose one based on whether you're invalidating cached content by tag or by source image.

```bash filename="terminal"
vercel cache invalidate --srcimg /api/avatar/1
```

### revalidation-deadline-seconds

The `--revalidation-deadline-seconds` option specifies the revalidation deadline in seconds. When used with `dangerously-delete`, cached content will only be deleted if it hasn't been accessed within the specified time period.

```bash filename="terminal"
vercel cache dangerously-delete --tag blog-posts --revalidation-deadline-seconds 3600
```

### Yes

The `--yes` option can be used to bypass the confirmation prompt when purging the cache or dangerously deleting cached content.

```bash filename="terminal"
vercel cache purge --yes
```


--------------------------------------------------------------------------------
title: "vercel certs"
description: "Learn how to manage certificates for your domains using the vercel certs CLI command."
last_updated: "2026-02-03T02:58:37.903Z"
source: "https://vercel.com/docs/cli/certs"
--------------------------------------------------------------------------------