---
title: "Purge cached static assets for a specific environment."
method: DELETE
path: "/projects/{project_id}/environments/{environment_id}/asset-cache"
tags: ["Deployments"]
---

# Purge cached static assets for a specific environment.

`DELETE /projects/{project_id}/environments/{environment_id}/asset-cache`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/environments/{environment_id}/asset-cache`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required
- `environment_id` integer, required

## Response `200`

Environment asset cache purged

- AssetCachePurgeResponse: Result of purging cached static assets.
  - `deleted` integer, required: How many cached asset entries were removed (0 when the cache was empty).

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `500`: Internal server error

## Changes

- **2026-11-06** `6ad6cfa11620`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/environments/:environment_id/asset-cache/delete.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
