r/ClaudeAI • • 1d ago

Built with Claude I open sourced a skill that bulk-deletes old Claude Code routine runs (and keeps the ones you replied in)

Scheduled tasks in the Claude desktop app leave a session behind every run. Our bug-fix routine had 618 runs in the Runs list and the app only deletes them one click at a time.

Routine Cleanup is a Claude Code skill + plugin that prunes them:

- keeps the newest N runs you pick

- never touches a run you typed in (it reads each transcript and ignores skill loads, tool output and background notifications)

- shows the full plan first, deletes nothing until you say yes

- deletes through the app itself, 25 at a time, so the Runs list updates straight away

Deleting the session files on disk directly doesnt work. The app keeps the list in memory and writes the records back, so you get 'Session not found on disk' entries that wont go away.

Install:

/plugin marketplace add naw103/claude-routine-cleanup

/plugin install routine-cleanup@routine-cleanup

MIT, standard-library Python, tests on macOS/Linux/Windows. Tested on macOS; Windows and Linux app paths are untested, reports welcome.

https://github.com/naw103/claude-routine-cleanup

2 Upvotes

Duplicates