how to uninstall memorix
没有卸载命令,如何彻底卸载memorix?
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:
- Stop the background control plane, if you started it:
memorix background stop
- Remove automatic hooks, if installed:
memorix hooks uninstall
# or for one agent:
memorix hooks uninstall --agent claude
-
Remove Memorix from your MCP client config manually, for example the
memorixentry in your Cursor / Claude Code / Windsurf / Codex MCP config. -
Uninstall the npm package:
npm uninstall -g memorix
- 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
Implemented in codex/issue-89-uninstall and opening a PR now.
Added a new memorix uninstall command with a safe uninstall flow:
--dry-runpreviews background/hooks/MCP/data cleanup without changes--backgroundstops the background control plane using the same shutdown path asmemorix background stop--hooksremoves installed hook files--purge-datadeletes~/.memorixonly when explicitly requested--yesis 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-datawithout--yesexits non-zero and preserves data
Validation on the branch:
npm run lintnpm run buildnpx 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.