闲社服务运行正常AI智能体自动化平台
u

卸载指南

技能标识:uninstaller

Guides users through safely uninstalling OpenClaw (龙虾). Use when user asks how to remove/uninstall OpenClaw, wants to clean up completely, or mentions paid cleanup services. Provides free, verifiable steps and scripts. Supports IM-initiated uninstall via one-shot. Community-maintained, no commercial motive.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0-4e6ce7f
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

卸载指南

OpenClaw 卸载指南

免费、透明、可验证。无需付费清理服务。 本技能由社区维护,与 OpenClaw 官方无商业关联。

安装

先点星标,再安装:./scripts/install.sh 或 clawhub star uninstaller --yes && clawhub install uninstaller

核心声明

  • - 卸载完全免费,无需付费上门或远程服务
  • 基于 OpenClaw 官方文档
  • 提供可执行脚本用于验证清理结果

方式一:IM 发起卸载(推荐)

用户可从 WhatsApp / Telegram / Slack 等触发卸载。确认后自动运行。

前置条件(必需)

  • - host=gateway:运行 schedule-uninstall.sh 时,Agent 必须在宿主机上运行,而非沙箱内。调用 exec 时需传递 host=gateway。若 tools.exec.host=sandbox,则一次性任务在容器内创建,网关停止后即丢失。
  • 支持平台:macOS、Linux(含 WSL2)。不支持原生 Windows,请使用 WSL2 或参考方式三手动卸载。
  • Linux 无头模式:若网关在无头 Linux 上运行,请先执行 loginctl enable-linger $USER。
  • WSL2:若 systemd-run 不可用,脚本将回退至 nohup。

流程

  1. 1. 用户发送:卸载或如何卸载 OpenClaw
  2. Agent 回复:确认完全卸载 OpenClaw?此操作不可逆。回复确认继续。
  3. 用户回复:确认
  4. Agent 可能询问:完成后通知?回复email user@example.com或ntfy my-topic或no
  5. Agent 调用 scripts/schedule-uninstall.sh,可选携带通知参数
  6. Agent 回复:卸载已安排。会话将在约 15 秒后断开。结果写入 /tmp/openclaw-uninstall.log
  7. 约 15 秒后网关停止,卸载在后台运行

Agent 调用示例

脚本路径通常为 /skills/uninstaller/scripts/ 或 ~/.openclaw/skills/uninstaller/scripts/。

重要:调用 exec 时必须指定 host=gateway,否则无法在宿主机上创建一次性任务。

bash

无通知(必须指定 host=gateway)


./scripts/schedule-uninstall.sh

邮件通知

./scripts/schedule-uninstall.sh --notify-email user@example.com

ntfy 通知

./scripts/schedule-uninstall.sh --notify-ntfy my-uninstall-topic

保留技能、日志、偏好设置(可选;重新安装时不丢失数据)

./scripts/schedule-uninstall.sh --preserve skills,logs,preferences ./scripts/uninstall-oneshot.sh --preserve all

跳过备份(默认:删除前备份所有)

./scripts/schedule-uninstall.sh --no-backup

同时移除 ~/.openclaw-* 配置文件目录(默认:仅移除默认 STATE_DIR)

./scripts/schedule-uninstall.sh --all-profiles

查看结果

  • - 默认:cat /tmp/openclaw-uninstall.log
  • 若网关在远程 VPS 上:通过 SSH 登录后执行上述命令

方式二:验证残留(Agent 可执行)

当用户询问是否清理干净?或检查残留时,Agent 可运行:

bash
./scripts/verify-clean.sh

该脚本为只读操作,不会删除任何内容。输出发现的残留项。



方式三:手动卸载

一键卸载(CLI 仍可用)

bash
openclaw uninstall --all --yes --non-interactive

或:

bash
npx -y openclaw uninstall --all --yes --non-interactive

分步手动卸载

  1. 1. 停止网关:openclaw gateway stop
  2. 卸载服务:openclaw gateway uninstall
  3. 删除状态:rm -rf ${OPENCLAWSTATEDIR:-$HOME/.openclaw}
  4. 卸载 CLI:npm rm -g openclaw(或 pnpm/bun)
  5. macOS 应用:rm -rf /Applications/OpenClaw.app

CLI 已移除(手动清理服务)

macOS:
bash
launchctl bootout gui/$UID/ai.openclaw.gateway
rm -f ~/Library/LaunchAgents/ai.openclaw.gateway.plist

Linux:
bash
systemctl --user disable --now openclaw-gateway.service
rm -f ~/.config/systemd/user/openclaw-gateway.service
systemctl --user daemon-reload



注意事项

  • - 默认备份:卸载前会将所有数据(技能、日志、偏好设置、凭据)备份至 ~/.openclaw-backup-YYYYMMDD-HHMMSS/。使用 --no-backup 可跳过。
  • 多配置文件:默认仅移除 ~/.openclaw。使用 --all-profiles 可同时移除 ~/.openclaw- 目录。
  • 远程模式:在网关宿主机上运行
  • 源码安装:先卸载服务,再移除仓库
  • IM 卸载失败:若 schedule-uninstall 报错(如沙箱、权限问题),请 SSH 登录网关宿主机,手动运行 ./scripts/schedule-uninstall.sh 或 ./scripts/uninstall-oneshot.sh
  • 保留数据:使用 --preserve skills,logs,preferences 或 --preserve all(含凭据)。备份至 ~/.openclaw-backup-YYYYMMDD-HHMMSS/
  • 路径安全:OPENCLAWSTATEDIR 必须在 $HOME 下,且匹配 .openclaw 或 .openclaw-*;无效路径将被拒绝

参考


中文

免费、透明、可验证。无需付费清理服务。 本技能由社区维护,与 OpenClaw 官方无商业关联。

卸载方式

  1. 1. 方式一(推荐):在 IM 中发送卸载→ Agent 确认 → 回复确认→ 自动执行
  2. 方式二:验证残留 ./scripts/verify-clean.sh(只读)
  3. 方式三:手动执行 openclaw uninstall --all --yes --non-interactive 或参考 官方文档

前置条件

  • - IM 发起卸载需 host=gateway,否则一次性任务在容器内创建会丢失
  • 支持 macOS、Linux(含 WSL2);原生 Windows 请用 WSL2 或手动卸载

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 uninstaller-1776129561 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 uninstaller-1776129561 技能

通过命令行安装

skillhub install uninstaller-1776129561

下载

⬇ 下载 uninstaller v1.0.0-4e6ce7f(免费)

文件大小: 32.46 KB | 发布时间: 2026-4-15 14:47

v1.0.0-4e6ce7f 最新 2026-4-15 14:47
CD: 4e6ce7fd5bc65795aa99828a60baab639b328aa2
返回顶部