Trash archived diary entries

Posted by drdrang, Last update almost 2 years ago

Move all Archived drafts tagged “diary” into the Trash. Meant to be used in conjunction with the “Assemble diary” action.


  • script

    // List of all archived diary drafts
    var diaryDrafts = Draft.query("", "archive", ["diary"]);
    // Trash them
    for (var i=0; i<diaryDrafts.length; i++) {
    	diaryDrafts[i].isTrashed = true;


  • After Success Nothing
    Notification Info
    Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.