---
title: "Delete repository contexts"
method: POST
path: "/api/v2/contexts/delete"
tags: ["Repository Context"]
---

# Delete repository contexts

`POST /api/v2/contexts/delete`

## Request

- Base URL: `https://zeropath.com`
- URL: `https://zeropath.com/api/v2/contexts/delete`
- Auth: API key in header `X-ZeroPath-API-Token-Id` and API key in header `X-ZeroPath-API-Token-Secret`

Atomically delete one or more contexts by contextIds. Every context must exist and be authorized; failure leaves all entries unchanged.

## Request body

- DeleteContextsInput
  - `organizationId` string: Organization ID. Resolved from authentication when omitted.
  - `contextIds` string[], required

## Response `200`

Successful response

- DeleteContextsResponse
  - `deleted` true, required

## Other responses

- `400`: Error Response
- `401`: Error Response
- `403`: Error Response
- `404`: Error Response
- `409`: Error Response

---

[API](https://skmtc.dev/zeropath/apis/zeropath-api.md) - [All operations](https://skmtc.dev/zeropath/apis/zeropath-api/llms.txt) - [OpenAPI document](https://skmtc.dev/zeropath/apis/zeropath-api/revisions/126e9c80ba0d?raw)
