Cache Cleanup
AdvisoryAudited by Static analysis on Apr 30, 2026.
Overview
No suspicious patterns detected.
Findings (0)
Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.
Old files in logs, browser cache, canvas, sandbox, temporary OpenClaw files, and project `.cache` directories may be deleted.
The script performs irreversible local file and directory deletion. This is purpose-aligned for cache cleanup, but users should notice the destructive authority.
find "$dir" -type f -mtime +$days -delete 2>/dev/null ... find "$WORKSPACE/projects" -name ".cache" -type d -mtime +7 -exec rm -rf {} +Review the listed paths and retention periods before enabling; consider adding a dry-run mode, exclusions, or backups for any directory that may contain important work.
If scheduled, the cleanup may run every three days without the user manually starting it each time.
The skill declares a recurring schedule. This is disclosed and consistent with cache cleanup, but it is a persistence mechanism that can repeat deletion automatically.
"cron": "0 2 */3 * *"
Enable the cron schedule only if recurring cleanup is desired; otherwise run `cleanup.sh` manually or remove the schedule.
A user following the example may configure a non-existent wrapper script or fail to schedule the intended cleanup script.
The usage example references `run.sh`, while the supplied files and skill.json use `cleanup.sh`. This is an artifact consistency issue that could confuse installation.
cron job add cache-cleanup "0 2 */3 * *" ~/.openclaw/workspace/skills/cache-cleanup/run.sh
Update the documentation to reference `cleanup.sh`, or include and document the `run.sh` wrapper if it is required.
