chatgpt-google-extension
chatgpt-google-extension copied to clipboard
Auto delete conversations generated by search does not work. The extension does not delete the conversations generated by search.
Describe the bug A clear and concise description of what the bug is. Auto delete conversations generated by search does not work. The extension does not delete the conversations generated by search. I have the option grayed out. Desktop (please complete the following information):
- OS: Windows 11 22H2
- Browser Microsoft Edge
I have the same problem, I can't even check/uncheck the box

OS : Linux (ubuntu) Browser : Google Chromium
Same problem for me.
OS: Windows 10 Browser: Google Chrome
Same issue here.
Same here.
OS: Windows 11 Browser: Google Chrome
Same here.
OS:macOS 13.2.1 Browser: Google Chrome
Same here : OS : Windows 11 Browser : Brave
This is because the Auto delete button is added in extension options but functionality of this button is not added.
@wong2 If you are reading this comment, I have implemented this functionality by adding the above function.
async function deleteConversation(accessToken, conversationID) {
try {
const resp = await fetch(`https://chat.openai.com/backend-api/conversation/${conversationID}`, {
method: "PATCH",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${accessToken}`,
},
body: JSON.stringify({ is_visible: false })
});
const data = await resp.json();
console.log("Conversation deleted", data);
} catch (err) {
console.error("Error deleting conversation", err);
}
}
This is because the Auto delete button is added in extension options but functionality of this button is not added.
@wong2 If you are reading this comment, I have implemented this functionality by adding the above function.
async function deleteConversation(accessToken, conversationID) { try { const resp = await fetch(`https://chat.openai.com/backend-api/conversation/${conversationID}`, { method: "PATCH", headers: { "Content-Type": "application/json", Authorization: `Bearer ${accessToken}`, }, body: JSON.stringify({ is_visible: false }) }); const data = await resp.json(); console.log("Conversation deleted", data); } catch (err) { console.error("Error deleting conversation", err); } }
Hi chrahman, do you mind providing more details on how to add the piece of code to make the auto delete option work? Thanks a lot!
@DV4ABY I just found a temporary solution here, is that what you're looking for? And I guess the script above should be added in background.js when building from source.
@yct72 Thanks for the info!