在 Windows或者Linux上安装的openclaw,如何完全卸载openclaw.#openclaw卸载#版openclaw卸载
请确保以管理员身份运行 PowerShell
分别、按顺序执行如下每行命令
第一步:停止并删除服务
systemctl --user stop openclaw-gateway
systemctl --user disable openclaw-gateway
rm -f ~/.config/systemd/user/openclaw-gateway.service
systemctl --user daemon-reload
第二步:卸载 OpenClaw
npm uninstall -g openclaw
第三步:删除 OpenClaw 数据和配置
rm -rf ~/.openclaw
第四步:卸载 Node.js
apt remove -y nodejs
apt purge -y nodejs
apt autoremove -y
rm -f /etc/apt/sources.list.d/nodesource.list
apt update
第五步:验证清理干净
node --version # 应提示 command not found
npm --version # 应提示 command not found
openclaw --version # 应提示 command not found
ls ~/.openclaw # 应提示 No such file or directory