Delete collections
zotero_delete_collectionDelete collections by moving them to Zotero's trash, preserving items and subcollections. Permanent removal available on explicit request.
Instructions
Move collections to Zotero's trash, which is reversible and the default. The items inside are never deleted either way: they stay in the library and in any other collection they belong to. Subcollections follow their parent. Pass permanent: true only on an explicit request from the user, to erase the collections outright with no way back. Note that a trashed collection cannot be listed through the local API, so record the key returned here if it may need restoring.
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. | |
| permanent | No | false (default) moves the collections to the trash, which is reversible. true erases them irreversibly. Only pass true on an explicit request from the user. | |
| collectionKeys | Yes | Keys of the collections to remove, at most 50 per call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| erased | Yes | Collections erased irreversibly. Empty when permanent is false. | |
| trashed | Yes | Collections moved to the trash. Empty when permanent is true. | |
| notFound | Yes | ||
| permanent | Yes | ||
| libraryVersion | Yes |