LaunchKit · 2026
Back to Skills

delete-agent-with-telegram-group

Safely and thoroughly delete an OpenClaw agent and its artifacts.

0
323 downloads
by @sheetaa

Setup & Installation

openclaw skills install @sheetaa/delete-agent-with-telegram-group

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install delete-agent-with-telegram-group

Version History

v0.1.2Feb 21, 2026 - Version note by skill developer:

Security hardening: add strict agent_id/path validation in delete script, restrict workspace deletion to safe claw-* paths under home, enforce 3-step confirmation gates, and require explicit approval before any gateway restart/browser-driven Telegram group deletion.

What This Skill Does

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.

When to use it

  • 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

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

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

AGENT
  1. 1Run dry-run to list all files and config entries that would be removed
  2. 2Present dry-run output and request explicit confirmation for local deletion
  3. 3Execute delete script with --yes --delete-workspace --delete-telegram-group-config --delete-cron-jobs
  4. 4Request separate explicit confirmation before browser-automated Telegram group deletion
  5. 5Open Telegram Web, delete the group with 'Delete for all members', and report final group status
OUTPUT

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