memorix icon indicating copy to clipboard operation
memorix copied to clipboard

how to uninstall memorix

Open kendev93 opened this issue 6 months ago • 2 comments

没有卸载命令,如何彻底卸载memorix?

kendev93 avatar May 11 '26 08:05 kendev93

Thanks for raising this. You are right: Memorix currently has partial cleanup commands, but not a single documented "full uninstall" command yet.

For now, a manual full uninstall is:

  1. Stop the background control plane, if you started it:
memorix background stop
  1. Remove automatic hooks, if installed:
memorix hooks uninstall
# or for one agent:
memorix hooks uninstall --agent claude
  1. Remove Memorix from your MCP client config manually, for example the memorix entry in your Cursor / Claude Code / Windsurf / Codex MCP config.

  2. Uninstall the npm package:

npm uninstall -g memorix
  1. Optional, destructive: remove local Memorix data and config:
rm -rf ~/.memorix

On Windows PowerShell:

Remove-Item -Recurse -Force "$env:USERPROFILE\.memorix"

Step 5 deletes stored memories, mini-skills, sessions, background logs, and local config, so only do it if you really want a clean removal.

I agree this should be easier. I’ll keep this issue open and add a proper memorix uninstall / documented cleanup flow so users can choose between:

  • uninstall integrations only
  • uninstall package/runtime only
  • full data wipe

AVIDS2 avatar May 16 '26 06:05 AVIDS2

Implemented in codex/issue-89-uninstall and opening a PR now.

Added a new memorix uninstall command with a safe uninstall flow:

  • --dry-run previews background/hooks/MCP/data cleanup without changes
  • --background stops the background control plane using the same shutdown path as memorix background stop
  • --hooks removes installed hook files
  • --purge-data deletes ~/.memorix only when explicitly requested
  • --yes is required for non-interactive destructive cleanup

Important behavior:

  • Memorix does not auto-edit MCP config files; it detects and reports them for manual cleanup
  • Memorix does not run npm uninstall -g memorix; that remains a manual final step
  • Non-interactive --purge-data without --yes exits non-zero and preserves data

Validation on the branch:

  • npm run lint
  • npm run build
  • npx vitest run tests/cli/uninstall.test.ts tests/cli/background*.test.ts tests/hooks
  • 176 tests passed

I’ll close this issue once the PR is merged.

AVIDS2 avatar May 16 '26 09:05 AVIDS2