Skip to content

Instantly share code, notes, and snippets.

@ryanckulp
Created September 18, 2025 15:30
Show Gist options
  • Select an option

  • Save ryanckulp/5467d416a6c2b49041aefd1aeb7ee80a to your computer and use it in GitHub Desktop.

Select an option

Save ryanckulp/5467d416a6c2b49041aefd1aeb7ee80a to your computer and use it in GitHub Desktop.
Delete all Quora answers
// 1. visit quora.com/stats
// 2. sort by 'Answers' and 'All years'
// 3. scroll to bottom of page to reveal all items
// 4. copy/paste below into console
function clickElementByInnerText(el, tagName, targetText) {
const elements = el.getElementsByTagName(tagName);
for (let i = 0; i < elements.length; i++) {
const element = elements[i];
if (element.innerText.trim() === targetText) {
element.click();
return;
}
}
}
function deleteAnswers() {
let answerBox = document.getElementsByClassName('qu-pt--medium')[0];
Array.from(answerBox.getElementsByClassName('qu-tapHighlight--none')).forEach(function(item) {
if (!item.innerText.includes('Deleted') && !item.innerText.includes('Question')) {
item.getElementsByClassName('qu-width--20')[1].click();
clickElementByInnerText(item, 'div', 'Delete answer');
clickElementByInnerText(document, 'button', 'Confirm');
}
})
}
deleteAnswers();
@ryanckulp
Copy link
Author

i wanted to nuke my Quora account and all its content, but clicking "Delete" on the Settings page yielded a hanging request + error message. i figured it's because i had too much content.

this script deletes your answers. it may require running a couple times and manually clicking the "Confirm" button in the popup modal. you can also try slowing it down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment