---
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

---

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