delete

delete is a command for Claude Code from rhuss/cc-slidev. It costs 12 tokens per session (958 once invoked), scanned A, original, MIT.

A command for deleting a selected slide from a Slidev presentation, a slideshow written in Markdown, and renumbering the slides that follow it.

In plain words
What is it for?
Use it when you know the exact slide number you want to remove and want later slides renumbered automatically.
Why use it?
It removes the slide and closes numbering gaps so the presentation’s slide references remain consistent.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the slidev plugin — 8 skills, 19 commands, 3 agents shipped together

Good fit Use it when you know the exact slide number you want to remove and want later slides renumbered automatically.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add rhuss/cc-slidev
Claude Code
/plugin install slidev

Made for: Claude Code.

Or install slidev, the plugin that ships this one along with the rest of its 8 skills, 19 commands, 3 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/rhuss/cc-slidev/delete/github.svg)](https://agentmods.dev/commands/rhuss/cc-slidev/delete)
Your own site
<a href="https://agentmods.dev/commands/rhuss/cc-slidev/delete"><img src="https://agentmods.dev/badge/commands/rhuss/cc-slidev/delete/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

Your own site · 80×15
<a href="https://agentmods.dev/commands/rhuss/cc-slidev/delete"><img src="https://agentmods.dev/badge/commands/rhuss/cc-slidev/delete.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 958 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.00012 $0.00958
Opus 5.5 $0.00005 $0.00383
Sonnet 5.5 $0.00002 $0.00192
Haiku 4.5 $0.00001 $0.00096

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

Security

Grade A, and why

delete 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 26d 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.

slidev/commands/delete.md · 134 lines

How it starts

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

Delete Slide Command

Delete a slide by its slide number (from <!-- Slide N: ... --> comment). All subsequent slides are automatically renumbered to close gaps.

IMPORTANT: Argument is SLIDE NUMBER (e.g., 6 for Slide 6), NOT list position

IMPORTANT: Go DIRECTLY to the script - do NOT read slides.md or display structure first

Execution

1. Parse Slide Number

Extract slide number from $ARGUMENTS. If missing, show: "Usage: /slidev:delete <slide-number>"

2. Confirm Deletion

Ask for simple confirmation:

{
  "questions": [
    {
      "question": "Delete Slide [N] and renumber subsequent slides?",
      "header": "Confirm",
      "multiSelect": false,
      "options": [
        {
          "label": "Yes, delete",
          "description": "Remove slide and renumber"
        },
        {
          "label": "Cancel",
          "description": "Keep unchanged"
        }
      ]
    }
  ]
}

If cancelled, exit with: "Cancelled."

3. Execute Script

IMMEDIATELY run the script - NO exploration before this:

python3 ${CLAUDE_PLUGIN_ROOT}/scripts/manage-slides.py delete [SLIDE_NUMBER] --renumber

The script handles everything:

  • Validation (position >= 2, cannot delete title)
  • Deleting the file
  • Renumbering subsequent slides
  • Updating slides.md
  • Git operations

4. Show Results

Display the script output:

✅ Slide deleted

[Script output]

Examples

Delete Slide 2 (first content slide):

Current: Slide 2, 3, 4, 5
/slidev:delete 2
→ Deletes Slide 2 (file 02-xxx.md)
→ Result: Slide 2, 3, 4 (renumbered from old 3, 4, 5)

Delete Slide 4:

Current: Slide 2, 3, 4, 5, 6
/slidev:delete 4
→ Deletes Slide 4 (file 04-xxx.md)
→ Result: Slide 2, 3, 4, 5 (renumbered from old 5, 6)

Delete Slide 5:

Current: Slide 2, 3, 4, 5
/slidev:delete 5
→ Deletes Slide 5 (file 05-xxx.md)
→ Result: Slide 2, 3, 4

Slide Numbering Convention

Important:

  • Slide 1 = Title from slides.md frontmatter (no file in slides/)
  • Slide 2+ = Files in slides/ directory starting at 02-xxx.md
  • Cannot delete slide 1: It's the title, always present
  • First deletable slide is position 2 (slides/02-xxx.md)

Read the full file on GitHub · 134 lines

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. 26d ago Changed · -3 tokens per session 8659d97b4fb9
  2. 3mo ago First seen · 134 lines · 15 tokens per session scan A 6fa9c72fabea

Subscribe to this mod's changes

delete is a command published in the GitHub repository rhuss/cc-slidev (55 stars, last pushed 25d ago), licensed MIT. It adds 12 tokens to every session and 958 once invoked, about $0.0000 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-30.

Related

delete compared with commands from other repositories

delete next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
deleterhuss/cc-slidevCommand5525d agoMITA12Claude Code
cti-report7onez/cti-expertCommand6308d agononeA45Claude Code
brand-generateferdinandobons/brand-docsCommand3094mo agoMITA0Claude Code
render-figuresbraininahat/brains-in-a-hatCommand41mo agoMITA17Claude Code
ppt-image2-editable-rebuildwwe-dog/ppt-image2-editable-rebuildCommand2076mo agoUnlicenseA15Claude Code
arckit.uk-food-record-sheetstractorjuice/arckit-codexCommand19yesterdaynoneA73Claude Code
publish-api-docsnavraj007in/architecture-cowork-pluginCommand34mo agoApache-2.0A17Claude Code