Install
openclaw skills install ubuntu-wsl-system-cleanupAudit and safely clean Ubuntu 24.04 system junk, caches, logs, temp files, and unused local tool artifacts outside /mnt. Use when the user asks to clean the system, free disk space, remove caches, tidy packages, reclaim storage, or safely prune local Linux files on Ubuntu/WSL. Default to safe cleanup first; do not touch /mnt or destructive Docker data unless the user explicitly asks.
openclaw skills install ubuntu-wsl-system-cleanupAudit disk usage first, then choose a cleanup level.
/mnt._trash/ when cleanup should stay reversible.Use this by default.
Run these checks first:
df -h /du -xhd1 /root /var /usr 2>/dev/null | sort -hjournalctl --disk-usagedu -sh /var/cache/apt /var/lib/apt/lists ~/.npm ~/.cache ~/.local ~/.openclaw 2>/dev/nullThen run the safe cleanup script:
bash /root/.openclaw/workspace/skills/system-cleanup/scripts/safe-clean.shWhat safe cleanup does:
apt-get cleansystemd-journald/tmp and /var/tmpUse when the user wants more aggressive cleanup but still safe for active development.
Possible targets after confirming with the user:
_trash/ directories in the workspace.npm/_npx/root/.cachedocker system df reportRead references/targets.md before extended cleanup.
Use when the user asks to clean leftovers from tools that were already removed, or when you suspect tool dependencies, launchers, configs, caches, or generated data still remain after uninstalling a tool.
Read references/orphaned-tool-patterns.md before acting.
Checklist:
~/.local/bin~/.local/share/pipx/venvs against active launchers in ~/.local/bin~/.cache, ~/.config, ~/.local/share, and workspace _trash for removed tool namesDefault actions in this mode:
_trash entries the user explicitly approvedOnly use when the user explicitly asks.
First inspect:
docker system dfdu -sh /var/lib/dockerThen choose the least destructive command that matches the request, for example:
docker image prune -fdocker builder prune -fdocker system prune -fdocker system prune -a --volumes -f only with explicit user confirmationAlways summarize:
references/targets.mdscripts/safe-clean.sh