Show HN: Script to bulk delete Claude chats from the web UI
A user-created script addresses a notable UI deficiency in Claude AI, allowing for the bulk deletion of chat conversations. This "Show HN" project highlights a common Hacker News theme: leveraging internal APIs to solve practical problems where official features fall short. The discussion delves into the perennial debate over the security implications of running user-provided JavaScript in the browser console.
The Lowdown
Frustrated with Claude AI's web interface only allowing deletion of visible chats, a developer created and shared a JavaScript script to perform a full bulk deletion. This script bypasses the UI limitation by directly calling Claude's internal API, enabling users to clear their entire conversation history.
- The Problem: Claude's native web UI for chat deletion only affects conversations currently rendered on screen, making comprehensive bulk deletion impractical for users with many chats.
- The Solution: The
bulk-delete-claude-chatscript, shared on GitHub, executes API calls to delete all user conversations, providing a much-needed workaround. - How-to: Users are instructed to open their browser's developer console on the Claude AI
recentspage, paste the script, and confirm the action. - Important Caveats: The deletion process is slow, and users must keep the Claude AI tab open until the script confirms completion to ensure all chats are removed.
This practical open-source tool offers a significant convenience for Claude AI users seeking better control over their chat history, solving a minor but persistent UI annoyance.
The Gossip
Console Code Cautions
A significant portion of the discussion revolves around the inherent risks and trust required when running arbitrary JavaScript code in the browser console. Commenters humorously and seriously question the safety of such actions, comparing it to dangerous shell commands. Others counter that the script is short and unobfuscated, making it easy for technically inclined users to review before execution, though one joked about using an LLM for that review.
Deletion Despair & UX Gripes
Users expressed frustration over Claude's lack of a proper bulk deletion feature, highlighting a common user experience deficiency in many web applications. The script's existence underscores this need, with one commenter facetiously suggesting 'Delete account. Make new.' as an alternative, emphasizing the severity of the UI's limitation.