Empty the trash
zotero_empty_trashPermanently delete all trash items and attachment files from a Zotero library. Pass the exact count from zotero_list_trash; a mismatch refuses the deletion.
Instructions
Permanently erase every item in the trash. This is irreversible and removes attachment files from disk. As an interlock against emptying a trash the caller has not looked at, expectedCount must equal the number of items actually in it: call zotero_list_trash first and pass its totalResults. If the two disagree the call is refused and nothing is deleted. Only use this when the user has explicitly asked to empty the trash.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groupId | No | Group library ID. Omit for the personal library ("My Library"), which is what almost every request wants. Group IDs come from zotero_list_libraries. | |
| expectedCount | Yes | How many items you expect to erase, from zotero_list_trash. A mismatch aborts the call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| erased | Yes | ||
| libraryVersion | Yes |