Delete all your emails at once from ProtonMail’s servers
Trying to quit ProtonMail’s glebe1?
Follow the steps below.
TL;DR, use:
const a = setInterval( function () {
document.querySelector("#idSelectAll").click() ;
document.querySelector("button[data-testid='toolbar:movetotrash']").click() ;
document.querySelector("button[data-testid='pagination-row:go-to-next-page']").click()
}, 2000);
Steps in details:
- open your browser
- log in into protonmail.com
- go to ‘All Mail’
- click right in the browser
- select ‘Inspect’
- click on ‘Console’
- copy the script below in your clipboard
- paste the script in the console
- press Enter
- wait for the script to run
- go to ‘Trash’
- click ‘Select all Messages’
- look above the top message for a message ’You selected 50 conversations. Select all xxxx in Trash
- click ‘Select all xxxx in Trash’
- click on the cross in the menu above ‘Delete permanently’
const a = setInterval( function () {
document.querySelector("#idSelectAll").click() ;
document.querySelector("button[data-testid='toolbar:movetotrash']").click() ;
document.querySelector("button[data-testid='pagination-row:go-to-next-page']").click()
}, 2000);
You can watch this script deleting all your emails, page after page.
If this script no longer works: after step 5, try something like that:
- click on ‘Pick an Element from the page’ (top left of the inspector maybe)
- click on the ‘Go to next page’ button
- look in your console
- look for the text in between the double-quotes after
data-testid=
- replace what’s in single quote in the script after
data-testid=
- repeat for the actions of selecting all messages and deleting all messages.