Skip to main content
DELETE
/
v1
/
memories
/
{memory_id}
TypeScript SDK
import { MemoryClient } from '@xtraceai/memory';

const client = new MemoryClient({
  apiKey: process.env.XTRACE_API_KEY!,
  orgId:  process.env.XTRACE_ORG_ID!,
});

// Soft-delete: details.status becomes "retracted";
// the row is hidden from list/search but still resolvable via get.
await client.memories.delete('5b0d0f7d-d502-45d5-847d-e19512b5c517');
{
  "detail": {
    "code": "<string>",
    "message": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.mem.xtrace.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-api-key
string
header
required

Long-lived org API key. Alternative: Authorization: Bearer <key>.

X-Org-Id
string
header
required

Required alongside the API key (no key→org reverse index).

Headers

X-Service-Token
string | null

Path Parameters

memory_id
string
required

Response

Deleted. Subsequent DELETEs return 404 (idempotent contract).