cleanup
Claude Code Weekly Cleanup
Performs maintenance cleanup of safe-to-delete Claude Code files.
What Gets Cleaned
| Directory | Purpose | Safe to Delete |
|---|---|---|
~/.claude/debug/* |
Debug logs | Yes |
~/.claude/shell-snapshots/* |
Shell state snapshots | Yes |
~/.claude/todos/* |
Old todo list files | Yes |
Cleanup Process
- Show current disk usage before cleanup
- Remove safe-to-delete files
- Show disk usage after cleanup
- Report space freed
Execute Cleanup
Run these commands:
# Show before size
echo "Before cleanup:"
du -sh ~/.claude/
# Clean safe directories
rm -rf ~/.claude/debug/* ~/.claude/shell-snapshots/* ~/.claude/todos/*
# Show after size
echo "After cleanup:"
du -sh ~/.claude/
What Is NOT Cleaned (Important Data)
projects/- Session data and historyplugins/- Installed pluginsskills/- Your custom skillshistory.jsonl- Conversation historysettings.json- Your settingsCLAUDE.md- Global instructions
More from vapvarun/claude-backup
php
Modern PHP development best practices including PHP 8.x features, OOP patterns, error handling, security, testing, and performance optimization. Use when writing PHP code, reviewing PHP projects, debugging PHP issues, or implementing PHP features outside of WordPress/Laravel specific contexts.
45laravel
Complete Laravel development guide covering Eloquent, Blade, testing with Pest/PHPUnit, queues, caching, API resources, migrations, and Laravel best practices. Use when building Laravel applications, writing Laravel code, implementing features in Laravel, debugging Laravel issues, or when user mentions Laravel, Eloquent, Blade, Artisan, or PHP frameworks.
23email-marketing
Create email marketing campaigns including newsletters, drip sequences, promotional emails, and transactional emails. Use when writing email copy, designing email templates, or planning email automation.
14javascript
Write modern JavaScript/ES6+ code following best practices for performance, security, and maintainability. Use when writing JS code, fixing bugs, or implementing frontend functionality.
14html-markup
Write semantic, accessible HTML5 markup following best practices for structure, SEO, and accessibility. Use when creating HTML templates, fixing markup issues, or building web page structures.
12landing-page
Create high-converting landing pages with persuasive copy, clear CTAs, social proof, and optimized structure. Use when building sales pages, product pages, lead capture pages, or conversion-focused pages.
12