---
title: "Make a public package private: unlist it from /community and 404 public URLs (existing forks keep their copies)."
method: DELETE
path: "/v1/community/listings/{listing_id}"
tags: ["community"]
---

# Make a public package private: unlist it from /community and 404 public URLs (existing forks keep their copies).

`DELETE /v1/community/listings/{listing_id}`

## Request

- Base URL: `https://api.kody.codes`
- URL: `https://api.kody.codes/v1/community/listings/{listing_id}`
- Auth: HTTP bearer

Make a public package private: unlist it from /community and 404 public URLs (existing forks keep their copies). Prefer packageUpdate with changes.visibility: "private" and confirm_name matching the package slug. Delisted listings cannot be unpublished by the owner.

Org permission: `package:publish`.

## Path parameters

- `listing_id` string, required: Catalog entry id to unpublish.

## Query parameters

- `confirm_name` string, required: Must equal the package name leaf (URL slug). Confirm with the user first: going private 404s public URLs and unlists the catalog; existing forks keep their copies.

## Response `200`

Success.

- object
  - `listing_id` string, required
  - `unpublished` true, required

## Other responses

- `400`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `401`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `403`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `404`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `409`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `413`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `429`: Too many requests (edge IP/token limit) or an entitlement / plan-cap limit. Wait at least `Retry-After` seconds before retrying.
- `500`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `503`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `default`: Error envelope `{ "error": { "code", "message", "details"? } }`.

---

[API](https://skmtc.dev/kody/apis/kody-api.md) · [All operations](https://skmtc.dev/kody/apis/kody-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kody/apis/kody-api/revisions/705f4f022728?raw)
