---
title: "Delete context data from the context processor"
method: POST
path: "/api/v1/context/delete"
tags: ["context"]
---

# Delete context data from the context processor

`POST /api/v1/context/delete`

This endpoint deletes context data based on the provided parameters. It returns a success or error response depending on the result from the context processor.

## Request body

- object
  - `source` string, required — Source identifier for the context
  - `user_id` string, nullable — Optional user ID
  - `organization_id` string, required — Organization ID
  - `by_doc` boolean, nullable — Flag to delete by document
  - `by_id` boolean, nullable — Flag to delete by ID

## Response `204`

Context deleted successfully

- object

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Server Error

## Changes

- **2026-01-03** `510cbb709bed` — 3 breaking, 4 info
  - the request property `organization_id` became not nullable
  - the request property `organization_id` became required
  - the request property `source` became required
  - added the media type `application/json` for the response with the status `400`
  - …3 more
- **2025-12-24** `3f676384b4bb` — 1 info
  - api operation id `deleteContextByDocOrNodeId` was added
- **2025-12-03** `4856c8b766e4` — 1 info
  - request property `user_id` deprecated
- **2025-09-18** `38251f330bf6` — 2 info
  - the endpoint scheme security `bearerAuth` was added to the API
  - the endpoint scheme security `BearerAuth` was removed from the API
- **2025-09-18** `27487dadb0ef` — 2 info
  - the endpoint scheme security `BearerAuth` was added to the API
  - the endpoint scheme security `bearerAuth` was removed from the API

[Full history](https://skmtc.dev/alchemyst-ai/apis/alchemyst-ai-api-v1-documentation/changes/api/v1/context/delete/post.md)

---

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