Hacker News

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

32 points by ML0037 ago | 10 comments
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.)

cpeterso |next [-]

[delayed]

c7b |next |previous [-]

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 |next |previous [-]

Which of course assumes, that the "delete chat" function actually deletes anything from Anthropic's datastore.

hootz |root |parent |next [-]

This can be used for general organization or privacy against other people, not just trying to hide conversations from Anthropic.

|next |previous [-]

petesergeant |next |previous [-]

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 |root |parent [-]

Hi! for ChatGPT I go in settings -> Data Controls -> delete all chat

alfanick |next |previous [-]

"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 |root |parent |next [-]

It's 100 lines of unobfuscated js. If you're worried just read it.

|root |parent |next [-]

alfanick |root |parent |previous [-]

`sudo rm -rf /` one line of unoobfuscated shell. /s

3997531578 |root |parent |previous [-]

[dead]

turkeyboi |previous [-]

Delete account. Make new.