Delete an agent's session
destroy_sessionDestroy one of an agent's conversation sessions: it leaves list_sessions and cannot be resumed, though its transcript is kept. This cannot be undone, so confirm with the user first, naming the session. A session that is running is refused; wait for it to finish. A session already deleted, or one of another agent, reports that it is gone and succeeds. Destroying the agent keeps its sessions, and once the agent is gone no MCP tool can remove them, so destroy them first if they should go. Requires connecting a Valet account.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Required. The agent's name. | |
| session | Yes | Required. The session id, as list_sessions names it. | |
| org_name | No | The Valet organization the agent belongs to. Omit to use the organization the account joined first. |