Back to Registry View Author Profile
Official Verified
c3po-session-cleaner
Clean up old OpenClaw session files and keep only active sessions
skill-install — Terminal
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/ccc-3po/c3po-session-cleanerOr
Clean OpenClaw Sessions
This skill will safely delete old session files (.jsonl) older than 3 days in the OpenClaw main agent session directory.
cd /home/ubuntu/.openclaw/agents/main/sessions/
find . -name "*.jsonl" -type f -mtime +3 -delete 2>/dev/null
echo "====================================="
echo "✅ Clean completed successfully"
echo "Remaining session files: $(ls -l *.jsonl 2>/dev/null | wc -l)"
echo "====================================="
Metadata
AI Skill Finder
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skill Add to Configuration
Paste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-ccc-3po-c3po-session-cleaner": {
"enabled": true,
"auto_update": true
}
}
}Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.