
OpenClaw卸载教程
Windows篇
schtasks /Delete /F /TN "OpenClaw Gateway"Get-Process -Name "openclaw*" -ErrorAction SilentlyContinue | Stop-Process -Forcenpm uninstall -g openclaw#这是主目录,藏着你的密钥和工作记录Remove-Item -Recurse -Force "$env:USERPROFILE\.openclaw" -ErrorAction SilentlyContinue#以下是历史版本可能留下的“遗骸”,很多人会漏掉!Remove-Item -Recurse -Force "$env:USERPROFILE\.clawdbot" -ErrorAction SilentlyContinueRemove-Item -Recurse -Force "$env:USERPROFILE\.moltbot" -ErrorAction SilentlyContinueRemove-Item -Recurse -Force "$env:USERPROFILE\.molthub" -ErrorAction SilentlyContinue#再检查一下公共的 AppData 目录Remove-Item -Recurse -Force "$env:APPDATA\OpenClaw" -ErrorAction SilentlyContinueRemove-Item -Recurse -Force "$env:LOCALAPPDATA\OpenClaw" -ErrorAction SilentlyContinue
macOS篇
launchctl bootout gui/$UID/bot.molt.gateway 2>/dev/nulllaunchctl bootout gui/$UID/bot.molt.gateway 2>/dev/null
pkill -f openclaw || trueopenclaw uninstall --all --yes#删除 npm 全局包npm uninstall -g openclaw#如果装过桌面应用rm -rf /Applications/OpenClaw.app
#删除主配置目录(密钥、记忆全在这儿)rm -rf ~/.openclaw#删除历史遗留目录rm -rf ~/.clawdbot ~/.moltbot ~/.molthub#删除开机自启的配置文件(plist)rm -f ~/Library/LaunchAgents/bot.molt.gateway.plistrm -f ~/Library/LaunchAgents/com.openclaw.gateway.plist
⚠️ 最后一道防线:撤销授权 & 换 API 密钥(最重要!)
Google 账号:访问
https://myaccount.google.com/permissions,找到 OpenClaw 相关的应用,移除。GitHub:Settings → Applications → Authorized OAuth Apps,取消授权。
飞书 / Slack / Discord 等:进入对应的应用管理后台,删除你创建的那个 Bot
去 DeepSeek、OpenAI、Claude 等平台的 API 管理页面,把之前填进去的那个 Key 删除,生成一个新的用。因为你无法确定旧 Key 有没有被缓存或泄露。
图钉AI导航官网:一站直达精选AI内容
https://www.tudingai.com/

夜雨聆风