delete-agent

delete-agent is a skill for Claude Code from desirecore/market. It costs 29 tokens per session (1,630 once invoked), scanned A, original, MIT.

A guided skill for safely deleting an unused software agent and its related data. It checks the agent's status, confirms the target, and lets you choose whether to remove conversation history.

In plain words
What is it for?
Use it to list deletion candidates, inspect their status, confirm deletion, optionally remove session history, and receive a completion record.
Why use it?
Deleting an agent can be irreversible, and active agents may not be safe to remove. The guided checks reduce the chance of deleting the wrong agent or losing history unintentionally.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit Use it to list deletion candidates, inspect their status, confirm deletion, optionally remove session history, and receive a completion record.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/desirecore/market/delete-agent
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add desirecore/market --skill delete-agent
Clone the repo
git clone --depth 1 https://github.com/desirecore/market

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for delete-agent

README.md
[![agentmods](https://agentmods.dev/badge/skills/desirecore/market/delete-agent/github.svg)](https://agentmods.dev/skills/desirecore/market/delete-agent)
Your own site
<a href="https://agentmods.dev/skills/desirecore/market/delete-agent"><img src="https://agentmods.dev/badge/skills/desirecore/market/delete-agent/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for delete-agent

Your own site · 80×15
<a href="https://agentmods.dev/skills/desirecore/market/delete-agent"><img src="https://agentmods.dev/badge/skills/desirecore/market/delete-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,630 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.01630
Opus 5.5 $0.00012 $0.00652
Sonnet 5.5 $0.00006 $0.00326
Haiku 4.5 $0.00003 $0.00163

Measured 12d ago against content hash c41de3de441e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

delete-agent scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/delete-agent/SKILL.md · 101 lines

How it starts

The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.

delete-agent Skill

L0: One-Sentence Summary

Archive unused Agents or restore them from local archives, preserve conversation history, and report team and schedule follow-up from actual receipts.

L1: Overview

Use this for deleting an Agent, recovering an accidental deletion, or inspecting local archives. Use ManageAgent, without local HTTP calls or manually moving archive directories. Deletion archives the Agent: it can be recovered locally, does not expire automatically, and is excluded from subsequent backups and migration packages. Only the user can permanently delete it through Settings → Data & Privacy → Archive.

L2: Detailed Specification

Archive an Agent

When the target is unspecified, list candidates with ManageAgent(action='list'); use get for details. Verify the name and ID, explaining that history is retained and teams it leads are archived too. Do not reconfirm a clearly authorized target; clarify ambiguous targets first. The tool protects built-in Agents, the caller itself, and active Agents. Stop an active target through the interface or wait until it is idle.

Call ManageAgent(action='delete', id='example-agent'). Do not ask whether to delete history or pass deleteRuns=true: the new tool rejects it. Approval follows the caller's approval mode; do not promise a dialog. Report the actual archive identifier, team and worktree dispositions, and warnings. Unbinding preserves worktrees and branches. Retain archiveId for recovery when needed; do not claim archiving reclaims all disk space.

List Archives and Restore

Use ManageAgent(action='list_archived') to inspect local archives. This is read-only and does not roll forward or repair incomplete transactions. Explain the actual phase, restorable, and originalIdOccupied values. Query again when an identifier is missing or an archive has disappeared; never invent an archiveId.

For a restorable entry, call ManageAgent(action='restore', archiveId='identifier from the list'). If the original ID is occupied, obtain the user's choice of a new name and pass name; never overwrite an existing Agent. When the original ID is free, providing name renames without forcing an ID change. restoreLedTeams defaults to true; pass false if the user wants its led teams to remain archived.

Read the full file on GitHub · 101 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago Changed · -7 lines · -15 tokens per session c41de3de441e
  2. 2mo ago Changed · +1 lines 4b5542b1228d
  3. 3mo ago First seen · 107 lines · 44 tokens per session scan A 5083becac11a

Subscribe to this mod's changes

delete-agent is a skill published in the GitHub repository desirecore/market (2 stars, last pushed today), licensed MIT. It adds 29 tokens to every session and 1,630 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

delete-agent compared with skills from other repositories

delete-agent next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
delete-agentdesirecore/marketSkill2todayMITA29Claude Code
llamaguardsynthetic-sciences/openscienceSkill4.5kyesterdayApache-2.0A74Claude Code, Codex
a0-plugin-routerGen-Verse/PAST-BenchSkill403mo agoApache-2.0A65Claude Code, Codex
create-skillGen-Verse/PAST-BenchSkill403mo agoApache-2.0A33Claude Code, Codex
agentskills-usagekai98k/agent-skills-registrySkill59mo agoMITA26Claude Code, Codex
agent-writergyanranjan/polyagent-skillsSkill38mo agoMITA69Claude Code, Codex
eval-dataset-designbojieli/ai-agent-bookSkill60kyesterdayApache-2.0A138Claude Code, Codex