# Send Delete Agent With Telegram Group to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- 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.
## Suggested prompts
### New install

```text
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.
```
### Upgrade existing

```text
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.
```
## Machine-readable fields
```json
{
  "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": {
    "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",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "scripts/delete_agent.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "delete-agent-with-telegram-group",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T17:30:37.454Z",
      "expiresAt": "2026-05-06T17:30:37.454Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=delete-agent-with-telegram-group",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=delete-agent-with-telegram-group",
        "contentDisposition": "attachment; filename=\"delete-agent-with-telegram-group-0.1.2.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "delete-agent-with-telegram-group"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "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."
      ]
    }
  },
  "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"
  }
}
```
## Documentation

### 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.


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 <agent_id> --dry-run

Execute (after confirmation):

python3 scripts/delete_agent.py --agent-id <agent_id> --yes --delete-workspace --delete-telegram-group-config --delete-cron-jobs

### Script Safety Guardrails

scripts/delete_agent.py validates agent_id format: [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 matching agentId)
Telegram group routing entries linked by those bindings

channels.telegram.groups.<chat_id>


Agent directory:

~/.openclaw/agents/<agent_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_id from removed bindings.
Use browser automation (Telegram Web) to open the group and run Delete Group.
In Telegram delete dialog, enable Delete for all members when 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.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: Sheetaa
- Version: 0.1.2
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-29T17:30:37.454Z
- Expires at: 2026-05-06T17:30:37.454Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/delete-agent-with-telegram-group)
- [Send to Agent page](https://openagent3.xyz/skills/delete-agent-with-telegram-group/agent)
- [JSON manifest](https://openagent3.xyz/skills/delete-agent-with-telegram-group/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/delete-agent-with-telegram-group/agent.md)
- [Download page](https://openagent3.xyz/downloads/delete-agent-with-telegram-group)