---
title: "Delete Harbor Key"
method: DELETE
path: "/api/harbors/{harbor_id}/keys/{key_id}"
tags: ["Harbors"]
---

# Delete Harbor Key

`DELETE /api/harbors/{harbor_id}/keys/{key_id}`

Revokes one Harbor credential by its credential ID.

Revocation affects only the selected credential. Other active Harbor credentials remain valid.

## Path parameters

- `harbor_id` string, uuid, required — Unique identifier of the Harbor.
- `key_id` string, uuid, required — Unique identifier of the Harbor credential.

## Headers

- `X-Polytomic-Version` string

## Response `200`

OK

- RevokedHarborKeyEnvelope
  - `data` object
    - `id` string, uuid — Unique identifier of the revoked credential.

## Other responses

- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

## Changes

- **2026-08-13** `00c653316d35` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/polytomic/apis/polytomic-api/changes/api/harbors/:harbor_id/keys/:key_id/delete.md)

---

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