v21

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-044334120.9 KB
Sessions & Agents

Delete Agent

Delete agent

Always deletes local agent metadata. If delete-backup-too=true, also deletes the agent memory namespace in Moorcheh.

delete/api/v2/agents/{agent_id}

Path parameters

agent_idstring required

Query parameters

delete-backup-tooboolean

Delete Moorcheh namespace backup

Delete Moorcheh namespace backup

Headers

authorizationstring nullable
X-Api-Keystring nullable

Response

Successful Response

{"stackTrail":"paths:/api/v2/agents/{agent_id}:delete:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}