Uninstall: remove repowise

Remove repowise from this repo, and optionally from this machine, with a full inventory of every path it wrote and a report of what was removed and kept.

Enumerates every path repowise has written for this repo (agent wiring, generated blocks in CLAUDE.md/AGENTS.md, the repo index, machine-wide state like login and telemetry preference), then removes whatever scope you choose. The report states exactly what was removed, what was kept, and why, even when you keep the index.

bash
repowise uninstall [PATH] [OPTIONS]
ParameterTypeDefaultDescription
--allbooleanfalseRemove everything, including the repo index and machine-wide state.
--keep-indexbooleanfalseThe reinstall case: remove agent wiring and generated blocks, keep the repo index and machine-wide state (login, caches).
--dry-runbooleanfalsePrint the plan and change nothing.
--formatstringtableOutput format. json reports the plan, every path, and what happened to it.
bash
repowise uninstall                    # interactive: shows the inventory, asks what to remove
repowise uninstall --all              # everything, including the index and login
repowise uninstall --keep-index       # everything except the index and machine-wide state
repowise uninstall --dry-run          # see the plan, remove nothing
repowise uninstall --all --format json

There is no --yes. Everywhere else in the CLI that flag means "run the default without asking", and there's no safe default here: running the default set when you meant to remove everything would be a partial uninstall, and removing everything by default would be a surprise deletion. Say what to remove instead: --all or --keep-index.

Consent is never inferred from a TTY probe. isatty lies on Windows, and guessing wrong in either direction is bad: guessing "interactive" hangs, guessing "not interactive" deletes without asking. With no terminal and no scope flag, uninstall prints the inventory, removes nothing, and exits non-zero.

Four groups make up the inventory:

  • Agent configuration: every wired agent, both project and user scope.
  • Generated blocks: the managed sections in CLAUDE.md and AGENTS.md, and the post-commit auto-sync hook. Other tools' content in the same hook file stays.
  • Repo index: .repowise/; rebuilding it costs a full re-index. An index held in a database through REPOWISE_DB_URL is listed and always kept.
  • Machine-wide state: ~/.repowise/, with login, caches, telemetry preference and the shared embedder key.

--all removes all four groups. --keep-index removes the first two. The optional pre-commit security block (repowise hook install --security) is not in the inventory: repowise hook uninstall removes it, together with the post-commit hook and the health gate.

The repowise package itself and the Claude Code plugin are owned by their own installers (pip/uv/pipx, the Claude Code plugin marketplace), not by this command. The report names the removal command for each. To remove the package, use the installer you installed it with:

bash
uv tool uninstall repowise   # uv
pipx uninstall repowise      # pipx
pip uninstall repowise       # pip

On Windows, quit Claude Code, Codex and any other agent that uses Repowise first: their MCP servers keep the install's files open, and the installer reports "Access is denied" while they run. Close those sessions, then run the uninstall command.

Remove a workspace

repowise uninstall works on one repository. It leaves .repowise-workspace.yaml and .repowise-workspace/ in place, and run at a workspace root its report says so. To remove a whole workspace:

  1. From the workspace root, remove the hooks from every member repository:

    bash
    repowise hook uninstall --workspace
  2. In each member repository, run repowise uninstall --all (or --keep-index to keep that repository's index).

  3. At the workspace root, delete .repowise-workspace.yaml and the .repowise-workspace/ directory. No command deletes them for you.

To take one repository out of a workspace and keep the rest, run repowise workspace remove <alias> from inside the workspace. It drops the entry from .repowise-workspace.yaml and leaves that repository's .repowise/ index on disk.

Next

Hosted

Indexed on every push, with nothing to install.

Start free
Was this page helpful?
Report a problem with this pageUpdated