The javascript function for 'Move Item to Trash'
Hello here.
I would like to know the javascript function for 'Move Item to trash' or 'Move the selected items to trash', I do not find it on https://www.zotero.org/support/dev/client_coding/javascript_api.
I would like to use
to select some items, and remove them using JS.
Many thanks.
I would like to know the javascript function for 'Move Item to trash' or 'Move the selected items to trash', I do not find it on https://www.zotero.org/support/dev/client_coding/javascript_api.
I would like to use
var items = Zotero.getActiveZoteroPane().getSelectedItems();
to select some items, and remove them using JS.
Many thanks.
This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
Upgrade Storage
item.deleted = true;await item.saveTx();