AgentConnect
Agents

Clear an agent memory place layer

Delete every file of one conversation's place layer, its change history included: in the Control Plane for a memory home there, with no daemon involved, otherwise on the owning daemon. Organization owners only; the answer says whether there was a layer and never carries its content. Someone who cannot see a session of the conversation gets 404, as for an absent layer; anyone else who is not an owner gets 403. The change is recorded in the organization's audit log without content. 409 when the agent's daemon is too old to clear a layer; 503 when a home on the daemon is unplaced or its daemon is offline, or the memory home of the agent is not reachable right now; code says why.

DELETE
/v1/orgs/{orgId}/agents/{id}/memory/channels/{channelKey}

授权

bearerAuth
授权Bearer <token>

位置: header

路径参数

orgId*string
id*string
channelKey*string

A place layer's key, from GET /agents/:id/memory/channels; absent means the shared layer. A layer whose conversation shows the caller no session in the console answers 404, as an absent one does.

匹配^[A-Za-z0-9._-]+$
长度1 <= length <= 120

响应主体

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/v1/orgs/string/agents/string/memory/channels/string"
{  "cleared": true}