Delete Runbook

VerifiedSafe

Deletes a registered runbook by name from .claude/runbooks.json. Requires user confirmation before removal and preserves the file structure even when empty. Helps clean up outdated automations.

Sby Skills Guide Bot
DevelopmentBeginner
806/2/2026
Claude Code
#runbook#delete#configuration#claude

Recommended for

Our review

Deletes a registered runbook from the .claude/runbooks.json file after user confirmation.

Strengths

  • Prevents accidental deletion by requiring explicit confirmation.
  • Displays runbook details before deletion for verification.
  • Handles missing runbooks by listing available ones.
  • Maintains valid JSON structure even after deleting the last runbook.

Limitations

  • Only works with runbooks already registered in the file, cannot remove unregistered ones.
  • No batch deletion or pattern-based removal support.
When to use it

When you need to clean up your runbook collection by removing an outdated or unused runbook.

When not to use it

If you only want to temporarily disable a runbook, use a disable command instead.

Security analysis

Safe
Quality score85/100

The skill only reads and writes a local configuration file (.claude/runbooks.json) to remove a runbook entry. It does not execute any shell commands, network operations, or handle sensitive data. No risk of destruction, exfiltration, or obfuscation is present.

No concerns found

Examples

Delete a specific runbook
/runbook-delete auto-commit
Delete without name (interactive)
/runbook-delete

name: runbook-delete description: Delete a registered runbook by name from .claude/runbooks.json

Delete Runbook

You are removing a registered runbook from .claude/runbooks.json.

Instructions

  1. Parse arguments: /runbook-delete <runbook-name>

    • If no name provided, read .claude/runbooks.json and ask which runbook to delete
  2. Read .claude/runbooks.json and find the named runbook

    • If not found, list available runbooks
  3. Confirm with the user before deleting:

    Delete runbook "auto-commit"?
      Trigger: task_complete
      Mode: auto
      Actions:
        1. git add -A
        2. git commit -m "{{task_description}}"
        3. git push
    
  4. Remove the runbook from the JSON object

  5. Write the updated file back to .claude/runbooks.json

  6. Confirm deletion:

    Runbook "auto-commit" deleted.
    

Notes

  • Always confirm before deleting — this cannot be undone
  • If deleting the last runbook, keep the file with { "runbooks": {} } rather than removing it
Related skills