You do not need this script anymore, to delete all chats follow this instruction on desktop web:
- Go to https://claude.ai/recents
- Click on the checkbox below the search box. This should select all chats in the page. If you have more, you can click on the "Load more" in the bottom of the page.
- Click on "Delete" icon.
You want to delete all your conversations with Claude AI, but there is no button to clean them by one click (Like what ChatGPT has). Using this instructions, you can clean all conversations. No dependency or external tool is needed (except your Google Chrome browser!)
- Open Google Chrome and go to https://claude.ai
- Login to your account and start a new chat conversation
- Open DevTools and go to the Network tab
- You need to find the origanization id. Paste the
https://claude.ai/api/bootstrapin the Filter input to find the calls to that URL. If you could not find it, reload the page. Also make sure you are selecting the "All" type. You will see calls that contain a uuid in the url which is your organization id. - Now move to the Console tab and then paste the following two functions:
function deleteConversation(organizationID, uuid) { return fetch(`https://claude.ai/api/organizations/${organizationID}/chat_conversations/${uuid}`, { method: 'DELETE' }) .then(response => { if (response.ok) { console.log(`Successfully deleted conversation: ${uuid}`); return true; } else { console.log(`Failed to delete conversation: ${uuid}`); return false; } }) .catch(error => { console.error('Error:', error); return false; }); } function fetchAndDeleteConversations(organizationID) { let deletedCount = 0; fetch(`https://claude.ai/api/organizations/${organizationID}/chat_conversations`) .then(response => response.json()) .then(data => { const deletePromises = data.map(conversation => deleteConversation(organizationID, conversation.uuid)); return Promise.all(deletePromises); }) .then(results => { deletedCount = results.filter(result => result === true).length; }) .catch(error => console.error('Error:', error)); }
- And now run it like this:
fetchAndDeleteConversations("put your organization uuid here")
Thank you ac1982 for the Chrome Extension, I took the 2 functions, because an extension for this was too much for me :D
You do not need this script anymore, to delete all chats follow this instruction on desktop web: