跳到正文
TakoAPI
返回技能列表

delete-agent-with-telegram-group

由 sheetaa 提供

Web & Frontend Development
323下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Safely and thoroughly delete an OpenClaw agent and its artifacts.

描述

该技能的功能

Permanently removes an OpenClaw agent and all its associated artifacts: config entries, local agent files under ~/.openclaw/agents, bindings, Telegram group routing config, workspace directory, and cron jobs. Deletion follows a 3-step confirmation gate with a dry-run preview first. Telegram group deletion requires a separate explicit confirmation and uses browser automation via Telegram Web.

The dry-run preview and 3-step confirmation gate prevent accidental deletion of config files, workspaces, or Telegram groups that would otherwise require manual recovery from script-created backups.

何时使用

  • Removing a retired agent and its workspace after a project ends
  • Cleaning up test agents created during development
  • Decommissioning an agent alongside its dedicated Telegram group
  • Deleting stale cron jobs left by an unused agent
  • Resetting agent config entries after a failed setup

示例工作流

输入

User asks: delete agent 'news-bot' including its workspace, Telegram group config, and dedicated Telegram group

智能体
  1. 1

    Run dry-run to list all files and config entries that would be removed

  2. 2

    Present dry-run output and request explicit confirmation for local deletion

  3. 3

    Execute delete script with --yes --delete-workspace --delete-telegram-group-config --delete-cron-jobs

  4. 4

    Request separate explicit confirmation before browser-automated Telegram group deletion

  5. 5

    Open Telegram Web, delete the group with 'Delete for all members', and report final group status

输出

Summary listing removed agent entry, bindings, workspace path, cron jobs, and Telegram group deletion status, with paths to backup files openclaw.json.bak.* and jobs.json.bak.*

安装

clawhub install sheetaa/delete-agent-with-telegram-group

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接