v2

latestOpenAPI 3.1.0Proprietary2026-07-26127193620.1 KB
Memories

Delete a memory

Delete one active memory by key and scope. Function-authenticated requests use their own Function id and cannot override it. Deletes are idempotent without if_version; a stale if_version returns memory_conflict.

delete/memories

Query parameters

keystring required

Memory key. Must be at most 512 UTF-8 bytes.

scope_type'org' | 'function'

Explicit scope type. Omit to use automatic scope resolution. Pass function with scope_id=<function-id>, or org with no scope_id. Function-authenticated requests cannot override their automatic Function scope.

scope_idstring uuid

Function id UUID when scope_type=function. Not valid with scope_type=org. Function-authenticated requests may only use their own Function id.

if_versionstring

Bigint counter serialized as a base-10 string.

Optional compare-and-delete version.

Headers

x-primitive-function-idstring uuid

Optional function id UUID used as the default scope for non-function-authenticated requests when query scope parameters are omitted.

Response

Delete result.

successtrue required