SmartMemory
DELETE
/memory/agents/{agent_id}

Delete (deactivate) an agent.

Removes keys whose stored user_id is the agent ID in this tenant. Keys previously created from the Web Agents page belong to the calling human and are not revoked here. Those keys require separate revocation.

Authorization

AuthorizationBearer <token>

Send Authorization: Bearer <token>. The token is either a Clerk session JWT or a SmartMemory API key (prefix sm_live_, sm_test_, or legacy sk_).

In: header

Path Parameters

agent_id*Agent Id

Response Body

application/json

curl -X DELETE "https://example.com/memory/agents/string"
Empty
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}