Trash or restore Zotero items
zotero_trash_itemsMove Zotero items to trash or restore them using a reversible deleted flag. Trashed items can be recovered in Zotero or via this tool, avoiding permanent deletion.
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 |