Hello,
strangely, the following action does not seem to delete the draft.
I checked the syntax in the drafts reference docs
thank you
—-
// See online documentation for examples
// http://getdrafts.com/scripting
//set the current draft as trashed (deleted)
draft.isTrashed = true;
//Show the list of drafts
app.showDraftList();