HN.zip

Show HN: Script to bulk delete Claude chats from the web UI

I haven't found a way to delete all chats in bulk like you can on Chatgpt. With Claude, you have to scroll to the bottom, select everything, and delete. The problem is, if you have a lot of chats, it becomes impossible. I created this script. It does it alone. I hope it helps someone.(conversations disappear from the UI slowly, over several minutes, and remember to keep the tab open until the console shows "Finished", refreshing away from the page can stop the deletion process.)

33 points by ML0037 - 9 comments

9 Comments

c7b [3 hidden]5 mins ago
Wouldn't downloading conversations be more useful? If you've input something into Claude that you don't want a future trillion-dollar US company (a bicorn?) to know, this script won't help I'm afraid. Free reminder that local AI exists and works well if you're willing to tinker a bit.
ur-whale [3 hidden]5 mins ago
Which of course assumes, that the "delete chat" function actually deletes anything from Anthropic's datastore.
ML0037 [3 hidden]5 mins ago
petesergeant [3 hidden]5 mins ago
How are you managing it with ChatGPT? I've always found Claude relatively easy to do it with, but unless they've changed it in the last few weeks it's hard with ChatGPT.

Edit: I should add I often want to keep one or two reference chats, so the "nuke all chats" button doesn't work for me.

ML0037 [3 hidden]5 mins ago
Hi! for ChatGPT I go in settings -> Data Controls -> delete all chat
turkeyboi [3 hidden]5 mins ago
Delete account. Make new.
alfanick [3 hidden]5 mins ago
"hey, here is a script called delete-all, that deletes all. you need to copy and paste it into your console that you need to open with f12 or whatever. and then it deletes all, trust me, it's safe". State of June 2026. /s
542458 [3 hidden]5 mins ago
It's 100 lines of unobfuscated js. If you're worried just read it.
alfanick [3 hidden]5 mins ago
`sudo rm -rf /` one line of unoobfuscated shell. /s