Deleting documents from Personal folder in kindle library

I had accumulated a lot of documents in personal folder library in my kindle library. Amazon’s way is too slow to complete the action. The below javascript code does mass processing:

 

javascript:(function(){ var v = new RegExp(“PersonalDocuments”); if (!v.test(document.URL)) { return false; } {a=document.getElementsByClassName(‘rowBodyCollapsed’);for(var i = 0; i<a.length; i++){Fion.deleteItem(‘deleteItem_’+a[i].getAttribute(‘asin’));};return; }})();