/destructive:uninstall-clifrom destructive
Remove all Claude Code user-scope files and uninstall the claude binary from this machine.
Ships in destructive. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Never run script because Windows cannot delete running claude.exe and running Claude Code keeps writing to ~/.claude; user runs script after quitting Claude Code.
Script removes binary: Homebrew cask claude-code (macOS), npm package @anthropic-ai/claude-code, else file claude resolves to on PATH.
Script removes data: ~/.local/share/claude (native install versions), ~/.claude, ~/.claude.json (Windows: under %USERPROFILE%).
Script removes lines referencing Claude, plus # >>> core:env >>> block from /core:setup, in shell rc files (.zshrc, .zprofile, .bashrc, .bash_profile, .profile, fish config.fish) and, on Windows, PowerShell profiles.
flowchart TD
ask["AskUserQuestion: uninstall Claude Code and delete full path of ~/.claude, full path of ~/.claude.json, full path of ~/.local/share/claude"] -->|decline| stop["stop, build nothing"]
ask -->|confirm| os{"$env:OS is Windows_NT, or uname -s starts with MINGW, MSYS or CYGWIN"}
os -->|yes| win["Windows command"]
os -->|no| nix["macOS or Linux command"]
win & nix --> hand["command in code block; tell user: quit Claude Code, every window; open terminal; paste; script prints one line per thing removed"] --> stop
Windows command: powershell -NoProfile -ExecutionPolicy Bypass -File "${CLAUDE_SKILL_DIR}/uninstall.ps1"
macOS or Linux command: bash "${CLAUDE_SKILL_DIR}/uninstall.sh"
What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
Other plugins' skills for the same job
npx claudepluginhub xve-bv/claude-marketplace --plugin destructive