delete_collection
Delete a Zotero collection permanently, including all sub-collections. Items are not deleted; they are only unfiled. Requires the collection's key and current version.
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. idempotency_key: optional opaque string; if a call with this exact key and these exact arguments already completed, that same outcome is replayed instead of running against Zotero again -- see delete_item_permanently's docstring for the full explanation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| version | Yes | ||
| idempotency_key | No |