---
title: "Delete Harbor Context Document"
method: DELETE
path: "/api/harbors/{harbor_id}/contexts/{context_id}"
tags: ["Harbors"]
---

# Delete Harbor Context Document

`DELETE /api/harbors/{harbor_id}/contexts/{context_id}`

Deletes one context document from a Harbor.

Deleting a context document does not affect the Harbor or its other context documents.

## Path parameters

- `harbor_id` string, uuid, required — Unique identifier of the Harbor.
- `context_id` string, uuid, required — Unique identifier of the context document.

## Headers

- `X-Polytomic-Version` string

## Response `200`

OK

- DeletedHarborContextEnvelope
  - `data` object
    - `id` string, uuid — Unique identifier of the deleted context document.

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