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

# Delete memory context data

`POST /api/v1/context/memory/delete`

Deletes memory context data based on provided parameters.

## Request body

- object
  - `memoryId` string, required — The ID of the memory to delete
  - `user_id` string, nullable — Optional user ID
  - `organization_id` string, nullable, required — Organization ID
  - `by_doc` boolean, nullable — Delete by document flag
  - `by_id` boolean, nullable — Delete by ID flag

## Response `204`

Successfully deleted memory context

## Other responses

- `400` — Invalid request parameters
- `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)
