SkillAgentSearch skills...

Openclaw Kill

No description available

Install / Use

/learn @xieruibin/Openclaw Kill
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

openclaw-clean 🦞→🗑️

彻底清理 OpenClaw 遗留的每一个字节。

License: MIT Platform

🌍 语言: 中文 | English


和其他卸载脚本有什么不同?

| 功能 | 其他脚本 | openclaw-clean | |------|----------|----------------| | 先扫描再删除,显示每项大小 | ✗ | ✅ | | --dry-run 预览模式(只看不删) | ✗ | ✅ | | -y 跳过确认,适合脚本集成 | ✗ | ✅ | | 末尾显示释放空间汇总 | ✗ | ✅ | | 自动发现并清理计划任务(Windows) | 部分 | ✅ | | 带时间戳的结构化日志 | ✗ | ✅ |


脚本文件

| 文件 | 系统 | 语言 | |------|------|------| | openclaw-killer.sh | macOS / Linux | 中文 | | openclaw-killer.en.sh | macOS / Linux | English | | openclaw-killer.zh.ps1 | Windows | 中文 | | openclaw-killer.ps1 | Windows | English |

快速使用

macOS / Linux(中文)

# 先预览,确认要删什么
./openclaw-killer.sh --dry-run

# 确认无误后执行(会有确认提示)
./openclaw-killer.sh

# 静默执行,适合脚本集成
./openclaw-killer.sh -y

macOS / Linux(English)

./openclaw-killer.en.sh --dry-run
./openclaw-killer.en.sh -y

Windows(中文)

注意:中文版需将文件另存为 UTF-8 with BOM 编码后运行。 VS Code:右下角编码 → 通过编码保存 → UTF-8 with BOM

# 先预览
.\openclaw-killer.zh.ps1 -DryRun

# 执行
.\openclaw-killer.zh.ps1

# 静默执行
.\openclaw-killer.zh.ps1 -Yes

Windows(English)

.\openclaw-killer.ps1 -DryRun
.\openclaw-killer.ps1 -Yes

它会清理什么

运行前会先扫描并列出所有发现的内容(含大小估算):

13:42:05 ›  扫描中,请稍候...

  发现 4 项待清理:
  [1] 配置/状态目录 (~/.openclaw)     (234.1 MB)
  [2] macOS 启动项 (ai.openclaw)      (4.0 KB)
  [3] 额外 profile: .openclaw-work    (12.3 MB)
  [4] 额外 profile: .openclaw-test    (8.7 MB)

  确认删除以上所有内容?[y/N]

清理范围:

  • ~/.openclaw — 配置、状态、日志、workspace
  • macOS LaunchAgent plist(包含旧版 com.openclaw.*
  • Linux systemd user service
  • Windows 计划任务(自动发现所有 OpenClaw* 任务)
  • 多 profile 目录(.openclaw-*
  • CLI 包(npm / pnpm / bun)
  • macOS 桌面版 App

作为 OpenClaw Skill 使用

如果你还没卸载 OpenClaw CLI,可以直接在对话中触发:

./install-skill.sh
# 然后在 OpenClaw 里说:"清理 OpenClaw" 或 "clean openclaw"

参数速查

| 参数 | PowerShell 参数 | 说明 | |------|-----------------|------| | -n / --dry-run | -DryRun | 只扫描列出,不删除任何文件 | | -y / --yes | -Yes | 跳过确认提示 | | -v / --verbose | -Verbose| 打印每个被删除文件的路径 | | -h / --help | — | 显示帮助信息 |


许可证

MIT

Related Skills

View on GitHub
GitHub Stars0
CategoryDevelopment
Updated9d ago
Forks0

Languages

Shell

Security Score

80/100

Audited on Mar 10, 2026

No findings