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!,
});

// Hard delete: the point is removed outright (no tombstone). Afterwards
// get returns 404 and the row is gone from list/search; a second delete
// also returns 404 (idempotent by absence).
await client.memories.delete('5b0d0f7d-d502-45d5-847d-e19512b5c517');
{
  "detail": {
    "code": "<string>",
    "message": "<string>"
  }
}

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

Path Parameters

memory_id
string
required

Response

Deleted. Subsequent DELETEs return 404 (idempotent contract).