---
title: "Delete package"
method: DELETE
path: "/scopes/{scope}/packages/{package}"
---

# Delete package

`DELETE /scopes/{scope}/packages/{package}`

Deletes a package if the package has no versions

## Path parameters

- `scope` string, required — The name of a scope. This must not be @ prefixed.
- `package` string, required — The name of a package.

## Response `204`

OK, no content

## Other responses

- `400` — Invalid request / Package has versions
- `401` — Unauthorized
- `403` — User is not a scope admin
- `404` — Package not found

## Changes

> 15 revisions in range; 4 could not be searched.

- **2026-02-06** `0c4e8d8a5c2a` — 2 warning
  - changed the pattern of the `path` request parameter `package` from `/^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/` to `^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$`
  - changed the pattern of the `path` request parameter `scope` from `/^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/` to `^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$`
- **2024-02-28** `f8d3b912d946` — 2 warning
  - changed the pattern of the `path` request parameter `package` from `^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$` to `/^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/`
  - changed the pattern of the `path` request parameter `scope` from `^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$` to `/^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/`

[Change history](https://skmtc.dev/jsr-io/apis/jsr-api/changes/scopes/:scope/packages/:package/delete.md)

---

[API](https://skmtc.dev/jsr-io/apis/jsr-api.md) · [All operations](https://skmtc.dev/jsr-io/apis/jsr-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/jsr-io/jsr-api/revisions/abb153728b13/schema)
