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

---

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