/install delete-agent-with-telegram-group
Delete Agent (Clean)
Permanently remove an agent and its related local config/files.
Safety Rules
- This is destructive. Always require explicit user confirmation.
- Enforce 3-step gate:
- run
--dry-run, - explicit confirmation for local deletion,
- separate explicit confirmation for Telegram browser/session-controlled group deletion.
- run
- Ask user whether to also delete the dedicated Telegram group.
- Never auto-delete Telegram groups without the separate confirmation.
- Prefer script execution for local cleanup (stable, low token).
Inputs
Collect:
agent_id(required)delete_workspace(yes/no)delete_telegram_group_config(yes/no; usually yes)delete_telegram_group(yes/no; requires explicit confirmation)delete_cron_jobs(yes/no; usually yes)
Script-first Commands
Dry-run:
python3 scripts/delete_agent.py --agent-id \x3Cagent_id> --dry-run
Execute (after confirmation):
python3 scripts/delete_agent.py --agent-id \x3Cagent_id> --yes --delete-workspace --delete-telegram-group-config --delete-cron-jobs
Script Safety Guardrails
scripts/delete_agent.pyvalidatesagent_idformat:[a-z0-9-]+.- It refuses deletion when target paths are outside allowed directories.
- Workspace deletion is allowed only when path is under user home and folder name starts with
claw-. - It creates backup files before writing config changes.
What the script removes
- Agent entry in
~/.openclaw/openclaw.json(agents.list) - Agent bindings (
bindings[]with matchingagentId) - Telegram group routing entries linked by those bindings
channels.telegram.groups.\x3Cchat_id>
- Agent directory:
~/.openclaw/agents/\x3Cagent_id>
- Workspace directory from agent config (if
--delete-workspace) - Cron jobs owned by this agent from
~/.openclaw/cron/jobs.json(if--delete-cron-jobs)
Dedicated Telegram Group Deletion
This skill does not bundle Telegram deletion automation code; it uses external browser automation tooling or manual user actions.
After local script deletion and only if user confirmed delete_telegram_group=yes:
- Require a separate explicit confirmation: user agrees to browser/session control and irreversible group deletion.
- Identify dedicated group
chat_idfrom removed bindings. - Use browser automation (Telegram Web) to open the group and run
Delete Group. - In Telegram delete dialog, enable
Delete for all memberswhen available, then confirm deletion. - Report final group status clearly:
deleted/left-only/pending-manual.
Post-step
- Surface backup files created by the script (
openclaw.json.bak.*,jobs.json.bak.*) so user can retain recovery points. - If gateway reload is available, let hot reload apply.
- If not applied, ask for explicit confirmation before restarting gateway, then verify logs.
- Return concise summary with removed items.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install delete-agent-with-telegram-group - 安装完成后,直接呼叫该 Skill 的名称或使用
/delete-agent-with-telegram-group触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Delete Agent With Telegram Group 是什么?
Safely and thoroughly delete an OpenClaw agent and its artifacts. Use when user asks to remove an agent completely, including workspace, agent files under ~/... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 533 次。
如何安装 Delete Agent With Telegram Group?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install delete-agent-with-telegram-group」即可一键安装,无需额外配置。
Delete Agent With Telegram Group 是免费的吗?
是的,Delete Agent With Telegram Group 完全免费(开源免费),可自由下载、安装和使用。
Delete Agent With Telegram Group 支持哪些平台?
Delete Agent With Telegram Group 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Delete Agent With Telegram Group?
由 Sheeta(@sheetaa)开发并维护,当前版本 v0.1.2。