Delete a scoped node, including companion stores for memory items.
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
Response Body
application/json
application/json
curl -X DELETE "https://example.com/memory/graph/nodes/string"null{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string",
"input": null,
"ctx": {}
}
]
}Delete Agent
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.
Delete Memory
Delete a memory item by ID with optional entity garbage collection. Requires authentication and validates item ownership. Args: item_id: ID of the memory item to delete cleanup_orphans: If True, also delete entities that have no other references (default: True) Returns: dict: Deletion status and garbage collection statistics