This commit is contained in:
user123
2026-01-30 17:54:39 +08:00
parent 173f36ae34
commit 1664faecee
4 changed files with 3 additions and 8 deletions

View File

@@ -2,7 +2,7 @@
# OpenClaw 一键安装与管理脚本
# 兼容 Debian / Ubuntu
# 官方文档: https://docs.openclaw.app
# 官方文档: https://openclaw.ai/
# 颜色定义
RED='\033[0;31m'
@@ -302,8 +302,7 @@ uninstall() {
systemctl daemon-reload
npm uninstall -g openclaw
npm uninstall -g moltbot # 尝试卸载旧包
npm uninstall -g clawdbot # 尝试卸载旧包
npm uninstall -g clawdbot
rm -rf "${CONFIG_DIR}"
log_info "OpenClaw 已卸载。"

View File

@@ -445,7 +445,6 @@ uninstall() {
rm -f "${PLIST_PATH}"
npm uninstall -g openclaw
npm uninstall -g clawdbot
npm uninstall -g moltbot
rm -rf "${CONFIG_DIR}"
log_info "OpenClaw 已卸载。"
}

Binary file not shown.

View File

@@ -1085,7 +1085,7 @@ func UninstallOpenclaw() error {
return err
}
packages := []string{"openclaw", "clawdbot", "moltbot"}
packages := []string{"openclaw", "clawdbot"}
for _, pkg := range packages {
cmd := exec.Command(npmPath, "uninstall", "-g", pkg)
cmd.Stdout = nil
@@ -1100,9 +1100,6 @@ func UninstallOpenclaw() error {
legacyDir := filepath.Join(userHome, ".clawdbot")
os.RemoveAll(legacyDir)
legacyDir2 := filepath.Join(userHome, ".moltbot")
os.RemoveAll(legacyDir2)
}
return nil