chroma_delete_collection
Remove a specific collection from the Chroma MCP Server by specifying its name, enabling clean data management within the Chroma embedding database.
Instructions
Delete a Chroma collection.
Args:
collection_name: Name of the collection to delete
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collection_name | Yes |
Implementation Reference
- src/chroma_mcp/server.py:318-329 (handler)The main handler function for the 'chroma_delete_collection' tool. It deletes the specified collection using the Chroma client and returns a success message or raises an exception on failure.async def chroma_delete_collection(collection_name: str) -> str: """Delete a Chroma collection. Args: collection_name: Name of the collection to delete """ client = get_chroma_client() try: client.delete_collection(collection_name) return f"Successfully deleted collection {collection_name}" except Exception as e: raise Exception(f"Failed to delete collection '{collection_name}': {str(e)}") from e