---
title: "Delete cached artifacts"
method: DELETE
path: "/api/cache/{ecosystem}/{name}/{version}"
tags: ["cache"]
---

# Delete cached artifacts

`DELETE /api/cache/{ecosystem}/{name}/{version}`

## Request

- Base URL: `/` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/cache/{ecosystem}/{name}/{version}`
- Auth: none declared

Removes the cached files of name@version, or only the one named by filename, so the next request fetches them from the upstream again. Pushed archives are not touched; delete those through /api/hosted.

## Path parameters

- `ecosystem` string, required
- `name` string, required
- `version` string, required

## Query parameters

- `filename` string

## Response `200`

OK

- ServerCacheDeleteResponse
  - `deleted` string[]
  - `purl` string

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `409`: Conflict

## Changes

- **2026-10-20** `30286ed701bd`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/git-pkgs/apis/git-pkgs-proxy-api/changes/api/cache/:ecosystem/:name/:version/delete.md)

---

[API](https://skmtc.dev/git-pkgs/apis/git-pkgs-proxy-api.md) - [All operations](https://skmtc.dev/git-pkgs/apis/git-pkgs-proxy-api/llms.txt) - [OpenAPI document](https://skmtc.dev/git-pkgs/apis/git-pkgs-proxy-api/revisions/17b399ab97cc?raw)
