delete_session
Permanently delete a chat conversation or agent session, removing its message files, attachments, and working directory. Preview changes with dry-run before confirming.
Instructions
删除指定的 Chat 对话或 Agent 会话。不可逆操作——会同时清理消息文件(.jsonl)、附件和工作目录。建议在 Proma 关闭或切换到其他会话后操作,避免与运行中进程冲突。不传 confirm 或 confirm=false 时仅预览(dry-run),列出将删除的文件/目录及其大小;传 confirm=true 才真正执行删除。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | 会话/对话的 ID | |
| type | Yes | 会话类型:conversation 为 Chat 对话,agent-session 为 Agent 会话 | |
| confirm | No | 安全栅栏。不传或 false 时仅 dry-run 预览将被删除的内容;传 true 才真正执行删除。 |