delete_collection
Permanently delete a Zotero collection and its sub-collections, unfiling items while preserving them in the library. The collection's current version is required to process the deletion.
Instructions
DESTRUCTIVE -- permanently deletes the collection. Matches Zotero's own "Delete Collection" behavior: any sub-collections nested under it are deleted too, cascading -- but items filed in it (or in a deleted sub-collection) are NOT deleted from the library, only unfiled from that collection.
There is no confirmation step at this layer; check list_collections for sub-collections first if that matters before calling this.
version: the collection's current version (from list_collections) -- the delete is refused if this doesn't match the server's current version.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| version | Yes |