Bulk delete Evernote notes

I had +1400 notes in Evernote. Now I want them deleted. As I didn’d find any way to do a bulk delete of notes I decided to use the power of available tools: browser and knowledge.

var tryToDelete = function () {
      $('.selectedNoteDelete').first().click()
    }
  , confirmDelete = function () {
      $('#gwt-debug-confirm').click()
    }
  , notes = 100
  , timeout = 1000 // miliseconds
  , loop = function () {
      setTimeout(function(){
        tryToDelete()

        setTimeout(function(){
          confirmDelete()
          notes -= 1
          if (notes > 0)
            loop()
        }, timeout)

      }, timeout)
    }

loop()

Take care - it will delete your notes and you may be not able to restore them. Also if used not properly it may do any other kind of harm.

In order to delete notes from a given notebook do:

  1. Open evernote in Google Chrome browser (it should work with any which allows you to run custom JavaScripts)
  2. Open notebook from which you want to delete notes
  3. Open Console (Ctrl+Shift+j on windows)
  4. Copy provided code
  5. Paste it into console
  6. Change notes and timeout
  7. Run code
  8. Wait until it's done

Depending on your internet connection, evernote responsiveness and your machine power you may increase or decrease timeout.  On my machine it was working well with timeout set to 250.

You may change timeout in realtime by passing into console new timeout value: timeout = 250 In the same way you may check number of items left to delete checking notes value: notes In order to stop script (if you introduced to many notes, or something goes wrong and you don’t want to refresh page) just run in console: notes = 0 And back again, if your script finished working, but you need to run it for X more notes, you can write:

notes = 100
loop()