Delete Collection
delete_collectionRemove an AFFiNE sidebar collection and its metadata without deleting the documents it references. Use it to clean up collections while preserving workspace content.
Instructions
Delete an AFFiNE sidebar collection. This removes the collection metadata but does not delete the documents it referenced.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspaceId | No | AFFiNE workspace id. Omit only when AFFINE_WORKSPACE_ID is configured. | |
| collectionId | Yes | AFFiNE collection id from list_collections or create_collection. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| code | No | ||
| error | No | ||
| details | No | ||
| success | No | ||
| causeCode | No | ||
| retryable | No | ||
| collectionId | No | ||
| recoveryGuidance | No |