delete_collection
Remove a collection and all its documents from Outline wiki to manage content organization.
Instructions
Delete a collection. All documents in the collection will also be deleted.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collectionId | Yes |
Implementation Reference
- src/lib/handlers/collections.ts:56-62 (handler)Implements the delete_collection tool by checking access and calling the Outline API to delete the specified collection.async delete_collection(args: DeleteCollectionInput) { checkAccess(config, 'delete_collection'); await apiCall(() => apiClient.post('/collections.delete', { id: args.collectionId }) ); return { success: true, collectionId: args.collectionId, message: MESSAGES.COLLECTION_DELETED }; },
- src/lib/schemas.ts:106-106 (schema)Zod input schema for delete_collection tool, requiring a valid UUID collectionId.export const deleteCollectionSchema = z.object({ collectionId });
- src/lib/schemas.ts:235-235 (registration)Maps the delete_collection tool name to its schema in the central toolSchemas registry.delete_collection: deleteCollectionSchema,
- src/lib/tools.ts:156-160 (registration)Creates the MCP tool definition for delete_collection using createTool, including description and schema reference.createTool( 'delete_collection', 'Delete a collection. All documents in the collection will also be deleted.', 'delete_collection' ),
- src/lib/handlers/index.ts:23-23 (registration)Spreads collection handlers (including delete_collection) into the combined ToolHandlers object for all tools....createCollectionHandlers(ctx),