Created
September 18, 2025 15:30
-
-
Save ryanckulp/5467d416a6c2b49041aefd1aeb7ee80a to your computer and use it in GitHub Desktop.
Delete all Quora answers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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(); |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.