---
title: "Delete a pushed version"
method: DELETE
path: "/api/hosted/{ecosystem}/{name}/{version}"
tags: ["hosted"]
---

# Delete a pushed version

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

## Request

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

Removes the archives pushed for name@version. If the upstream has the version, clients get the upstream archive again. For generic files, /api/hosted/generic/{name}/{version}/{file} removes only that file.

## Path parameters

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

## Response `204`

No Content

## Other responses

- `401`: Unauthorized
- `404`: Not Found

## Changes

- **2026-10-14** `a97aa2ddd79b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/git-pkgs/apis/git-pkgs-proxy-api/changes/api/hosted/: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)
