Skip to content

Instantly share code, notes, and snippets.

@adamawolf
Created January 25, 2013 19:00

Revisions

  1. adamawolf created this gist Jan 25, 2013.
    9 changes: 9 additions & 0 deletions delete_all_kindle_documents.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    //load jquery in console separately first
    var jq = document.createElement('script');
    jq.src = "http://code.jquery.com/jquery-latest.min.js";
    document.getElementsByTagName('head')[0].appendChild(jq);
    jQuery.noConflict();
    //delete ALL entries currently listed in Manage Your Kindle screen
    idsToDelete = []
    $('form[name="fionaDL"] input[name="contentName"]').each(function () { idsToDelete.push(this.value); })
    $(idsToDelete).each(function() {Fion.deleteItem('deleteItem_' + this);})