Trash or restore Zotero items
zotero_trash_itemsMove Zotero items to trash or restore them by setting the deleted flag. Reversible alternative to permanent deletion; accepts item keys and an optional action (trash or restore).
Instructions
Move items to the trash (the safe, REVERSIBLE default) or restore them. This sets the deleted flag (1=trash, 0=restore) — it is NOT a permanent delete, so trashed items can be recovered here or in the Zotero app. Use this instead of zotero_delete_items unless you truly need irreversible removal. Provide item_keys and optional action (default "trash"). Writes go to the running Zotero desktop app for your personal library (via its local-API writes where available), otherwise to the cloud Web API.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | Default "trash". | |
| item_keys | Yes | Item keys to trash or restore. | |
| library_id | No | ||
| library_type | No |