April 6, 2024

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:

  1. open your browser
  2. log in into protonmail.com
  3. go to All Mail’
  4. click right in the browser
  5. select Inspect’
  6. click on Console’
  7. copy the script below in your clipboard
  8. paste the script in the console
  9. press Enter
  10. wait for the script to run
  11. go to Trash’
  12. click Select all Messages’
  13. look above the top message for a message You selected 50 conversations. Select all xxxx in Trash
  14. click Select all xxxx in Trash’
  15. 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.

  1. https://technofeudalism.fyi↩︎


personal computing wiki protonmail

No affiliate links, no analytics, no tracking, no cookies. This work © 2016-2024 by yctct is licensed under CC BY-ND 4.0 .   about me   contact me   all entries & tags   FAQ   GPG public key

GPG fingerprint: 2E0F FB60 7FEF 11D0 FB45 4DDC E979 E52A 7036 7A88