delete_session
Remove a session and its memories — tombstoned by default, zeroed with hard.
async fn delete_session(&self, session_id: u64, query: &DeleteSessionQuery) -> Result<SessionErased, BrainHttpError>async fn delete_session(&self, request: &SessionDeleteRequest) -> Result<SessionDeleteResponse>Parameters
ParameterTypeRequired
session_id64-bit integerrequiredThe session to remove. Positional on the HTTP tier — it is a path segment, not a query field.
hardbooleanoptionalfalse (the default) tombstones the session's memories; true zeroes them. A query parameter on the HTTP tier; a required field on the wire request.
Returns
FieldTypePresence
space_id / session_id—alwaysWhat was targeted.
existedbooleanalwaysfalse when there was no such session. Not an error.
memories_forgotten64-bit integeralwaysHow many memories went with it.
You do not choose your space on the HTTP tier
The space comes from the credential. These verbs act on the caller's space. Addressing another space per request is a wire-tier capability — see act_as. Per-end-user isolation is a storage-key prefix inside one space, not a key per user; see Namespaces.
See also
Was this page helpful?