Forget every memory an agent holds about a single end-user.
Permanently removes all of the agent's per-end-user memories for the given `subject` (`"provider:identifier"`) in one call — the data-subject ("forget this person") deletion. Agent-global memories are untouched: an empty subject is rejected with 400 so the shared pool can never be wiped through this path. Requires the Admin collaborator role, matching single-memory deletion. Returns the number of memories removed (0 when the person had none).
Authorization
Bearer JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.
In: header
Path Parameters
The unique identifier of the agent.
The tenant identifier
The subject whose memories should be forgotten.
The end-user whose memories should all be forgotten, as
"provider:identifier" (e.g. "telegram:123456789").
1 <= length <= 512Response Body
curl -X POST "https://api.fruxon.com/v1/tenants/string/agents/string/memories:forgetSubject" \ -H "Content-Type: application/json" \ -d '{ "subject": "string" }'{
"deletedCount": 0
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}