Deleting Data from Chroma Collections

Chroma supports deleting items from a collection by id using .delete. The embeddings, documents, and metadata associated with each item will be deleted.

Naturally, this is a destructive operation, and cannot be undone.

collection.delete( ids=["id1", "id2", "id3",...], )

.delete also supports the where filter. If no ids are supplied, it will delete all items in the collection that match the where filter.

collection.delete( ids=["id1", "id2", "id3",...], where={"chapter": "20"} )