Skip to main content
Glama

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
NameRequiredDescriptionDefault
collection_nameYes

Implementation Reference

  • 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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/chroma-core/chroma-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server