Install
openclaw skills install delete-agent-with-telegram-groupSafely and thoroughly delete an OpenClaw agent and its artifacts. Use when user asks to remove an agent completely, including workspace, agent files under ~/...
openclaw skills install delete-agent-with-telegram-groupPermanently remove an agent and its related local config/files.
--dry-run,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)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
scripts/delete_agent.py validates agent_id format: [a-z0-9-]+.claw-.~/.openclaw/openclaw.json (agents.list)bindings[] with matching agentId)channels.telegram.groups.<chat_id>~/.openclaw/agents/<agent_id>--delete-workspace)~/.openclaw/cron/jobs.json (if --delete-cron-jobs)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:
chat_id from removed bindings.Delete Group.Delete for all members when available, then confirm deletion.deleted / left-only / pending-manual.openclaw.json.bak.*, jobs.json.bak.*) so user can retain recovery points.