---
title: "Dangerously delete by source image"
method: POST
path: "/v1/edge-cache/dangerously-delete-by-src-images"
tags: ["edge-cache"]
---

# Dangerously delete by source image

`POST /v1/edge-cache/dangerously-delete-by-src-images`

Marks a source image as deleted, causing cache entries associated with that source image to be revalidated in the foreground on the next request. Use this method with caution because one source image can be associated with many paths and deleting the cache can cause many concurrent requests to the origin leading to cache stampede problem. This method is for advanced use cases and is not recommended; prefer using `invalidateBySrcImage` instead.

## Query parameters

- `projectIdOrName` string, required
- `teamId` string
- `slug` string

## Request body

- object
  - `revalidationDeadlineSeconds` integer
  - `srcImages` string[], required

## Response `200`

## Other responses

- `400` — One of the provided values in the request body is invalid. One of the provided values in the request query is invalid.
- `401` — The request is not authorized.
- `402`
- `403` — You do not have permission to access this resource.
- `404`
- `410`

---

[API](https://skmtc.net/vercel/apis/api.md) · [All operations](https://skmtc.net/vercel/apis/api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vercel/api/versions/61d1ba3f6dac/schema)
