{
  "schemaVersion": "1.0",
  "item": {
    "slug": "delete-agent-with-telegram-group",
    "name": "Delete Agent With Telegram Group",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/Sheetaa/delete-agent-with-telegram-group",
    "canonicalUrl": "https://clawhub.ai/Sheetaa/delete-agent-with-telegram-group",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/delete-agent-with-telegram-group",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=delete-agent-with-telegram-group",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "scripts/delete_agent.py"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/delete-agent-with-telegram-group"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/delete-agent-with-telegram-group",
    "agentPageUrl": "https://openagent3.xyz/skills/delete-agent-with-telegram-group/agent",
    "manifestUrl": "https://openagent3.xyz/skills/delete-agent-with-telegram-group/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/delete-agent-with-telegram-group/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Delete Agent (Clean)",
        "body": "Permanently remove an agent and its related local config/files."
      },
      {
        "title": "Safety Rules",
        "body": "This is destructive. Always require explicit user confirmation.\nEnforce 3-step gate:\n\nrun --dry-run,\nexplicit confirmation for local deletion,\nseparate explicit confirmation for Telegram browser/session-controlled group deletion.\n\n\nAsk user whether to also delete the dedicated Telegram group.\nNever auto-delete Telegram groups without the separate confirmation.\nPrefer script execution for local cleanup (stable, low token)."
      },
      {
        "title": "Inputs",
        "body": "Collect:\n\nagent_id (required)\ndelete_workspace (yes/no)\ndelete_telegram_group_config (yes/no; usually yes)\ndelete_telegram_group (yes/no; requires explicit confirmation)\ndelete_cron_jobs (yes/no; usually yes)"
      },
      {
        "title": "Script-first Commands",
        "body": "Dry-run:\n\npython3 scripts/delete_agent.py --agent-id <agent_id> --dry-run\n\nExecute (after confirmation):\n\npython3 scripts/delete_agent.py --agent-id <agent_id> --yes --delete-workspace --delete-telegram-group-config --delete-cron-jobs"
      },
      {
        "title": "Script Safety Guardrails",
        "body": "scripts/delete_agent.py validates agent_id format: [a-z0-9-]+.\nIt refuses deletion when target paths are outside allowed directories.\nWorkspace deletion is allowed only when path is under user home and folder name starts with claw-.\nIt creates backup files before writing config changes."
      },
      {
        "title": "What the script removes",
        "body": "Agent entry in ~/.openclaw/openclaw.json (agents.list)\nAgent bindings (bindings[] with matching agentId)\nTelegram group routing entries linked by those bindings\n\nchannels.telegram.groups.<chat_id>\n\n\nAgent directory:\n\n~/.openclaw/agents/<agent_id>\n\n\nWorkspace directory from agent config (if --delete-workspace)\nCron jobs owned by this agent from ~/.openclaw/cron/jobs.json (if --delete-cron-jobs)"
      },
      {
        "title": "Dedicated Telegram Group Deletion",
        "body": "This skill does not bundle Telegram deletion automation code; it uses external browser automation tooling or manual user actions.\n\nAfter local script deletion and only if user confirmed delete_telegram_group=yes:\n\nRequire a separate explicit confirmation: user agrees to browser/session control and irreversible group deletion.\nIdentify dedicated group chat_id from removed bindings.\nUse browser automation (Telegram Web) to open the group and run Delete Group.\nIn Telegram delete dialog, enable Delete for all members when available, then confirm deletion.\nReport final group status clearly: deleted / left-only / pending-manual."
      },
      {
        "title": "Post-step",
        "body": "Surface backup files created by the script (openclaw.json.bak.*, jobs.json.bak.*) so user can retain recovery points.\nIf gateway reload is available, let hot reload apply.\nIf not applied, ask for explicit confirmation before restarting gateway, then verify logs.\nReturn concise summary with removed items."
      }
    ],
    "body": "Delete Agent (Clean)\n\nPermanently remove an agent and its related local config/files.\n\nSafety Rules\nThis is destructive. Always require explicit user confirmation.\nEnforce 3-step gate:\nrun --dry-run,\nexplicit confirmation for local deletion,\nseparate explicit confirmation for Telegram browser/session-controlled group deletion.\nAsk user whether to also delete the dedicated Telegram group.\nNever auto-delete Telegram groups without the separate confirmation.\nPrefer script execution for local cleanup (stable, low token).\nInputs\n\nCollect:\n\nagent_id (required)\ndelete_workspace (yes/no)\ndelete_telegram_group_config (yes/no; usually yes)\ndelete_telegram_group (yes/no; requires explicit confirmation)\ndelete_cron_jobs (yes/no; usually yes)\nScript-first Commands\n\nDry-run:\n\npython3 scripts/delete_agent.py --agent-id <agent_id> --dry-run\n\n\nExecute (after confirmation):\n\npython3 scripts/delete_agent.py --agent-id <agent_id> --yes --delete-workspace --delete-telegram-group-config --delete-cron-jobs\n\nScript Safety Guardrails\nscripts/delete_agent.py validates agent_id format: [a-z0-9-]+.\nIt refuses deletion when target paths are outside allowed directories.\nWorkspace deletion is allowed only when path is under user home and folder name starts with claw-.\nIt creates backup files before writing config changes.\nWhat the script removes\nAgent entry in ~/.openclaw/openclaw.json (agents.list)\nAgent bindings (bindings[] with matching agentId)\nTelegram group routing entries linked by those bindings\nchannels.telegram.groups.<chat_id>\nAgent directory:\n~/.openclaw/agents/<agent_id>\nWorkspace directory from agent config (if --delete-workspace)\nCron jobs owned by this agent from ~/.openclaw/cron/jobs.json (if --delete-cron-jobs)\nDedicated Telegram Group Deletion\n\nThis skill does not bundle Telegram deletion automation code; it uses external browser automation tooling or manual user actions.\n\nAfter local script deletion and only if user confirmed delete_telegram_group=yes:\n\nRequire a separate explicit confirmation: user agrees to browser/session control and irreversible group deletion.\nIdentify dedicated group chat_id from removed bindings.\nUse browser automation (Telegram Web) to open the group and run Delete Group.\nIn Telegram delete dialog, enable Delete for all members when available, then confirm deletion.\nReport final group status clearly: deleted / left-only / pending-manual.\nPost-step\nSurface backup files created by the script (openclaw.json.bak.*, jobs.json.bak.*) so user can retain recovery points.\nIf gateway reload is available, let hot reload apply.\nIf not applied, ask for explicit confirmation before restarting gateway, then verify logs.\nReturn concise summary with removed items."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/Sheetaa/delete-agent-with-telegram-group",
    "publisherUrl": "https://clawhub.ai/Sheetaa/delete-agent-with-telegram-group",
    "owner": "Sheetaa",
    "version": "0.1.2",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/delete-agent-with-telegram-group",
    "downloadUrl": "https://openagent3.xyz/downloads/delete-agent-with-telegram-group",
    "agentUrl": "https://openagent3.xyz/skills/delete-agent-with-telegram-group/agent",
    "manifestUrl": "https://openagent3.xyz/skills/delete-agent-with-telegram-group/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/delete-agent-with-telegram-group/agent.md"
  }
}