chroma_delete_documents
Remove specific documents from a Chroma collection by specifying their IDs and collection name. Confirms the number of documents deleted and handles errors for invalid inputs or non-existent collections.
Instructions
Delete documents from a Chroma collection.
Args:
collection_name: Name of the collection to delete documents from
ids: List of document IDs to delete
Returns:
A confirmation message indicating the number of documents deleted.
Raises:
ValueError: If 'ids' is empty
Exception: If the collection does not exist or if the delete operation fails.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
collection_name | Yes | ||
ids | Yes |
Input Schema (JSON Schema)
{
"properties": {
"collection_name": {
"title": "Collection Name",
"type": "string"
},
"ids": {
"items": {
"type": "string"
},
"title": "Ids",
"type": "array"
}
},
"required": [
"collection_name",
"ids"
],
"title": "chroma_delete_documentsArguments",
"type": "object"
}