From claude-code-sessions
Delete a Claude Code session file, with optional cleanup of associated task lists and tasks. Warns about orphaned tasks before deleting. Use when the user says "delete session", "remove session", or wants to clean up a specific session.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-code-sessions:session-deleteThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Delete a session and optionally its associated tasks.
Delete a session and optionally its associated tasks.
bun run ${CLAUDE_PLUGIN_ROOT}/lib/session-store.ts session-detail <session-id>
Show the session summary, token usage, and associated task lists. Also show the file path so the user can inspect it manually if desired.
NEVER delete without explicit user confirmation. Present:
ls -la "<path>")Ask: "Delete this session? (If you have associated tasks, I can delete those too, or leave them.)"
If user confirms, delete with or without tasks:
# Delete session only (tasks become orphans)
bun run ${CLAUDE_PLUGIN_ROOT}/lib/session-store.ts delete-session <session-id>
# Delete session and associated tasks
bun run ${CLAUDE_PLUGIN_ROOT}/lib/session-store.ts delete-session <session-id> --delete-tasks
Alternatively, the user can delete manually:
rm "<session-file-path>"
Show what was deleted: session file path, and if tasks were deleted, how many.
npx claudepluginhub apappascs/claude-code-sessions --plugin claude-code-sessionsCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.