chroma-core / chroma-core/chroma

[Bug]: HNSW directories do not get deleted when the collection is deleted

Open
#5,259 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
29.3k
Forks
2.5k
Avg merge
1d 4h
Merged PRs (30d)
38

Description

### What happened?

When deleting collections, the HNSW directories do not get deleted along with them. This results in an ever increasing disk space usage. According to @tazarov, "looking at the rust implementation it seems that deleting the HNSW index dir is missing"

### Versions

Chroma 1.0.15+

### Relevant log output

```shell

```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the Rust collection-deletion path and how HNSW index directories are created and named. Confirm that deleting a collection leaves its HNSW directory behind, then verify that the directory is removed with the collection and disk usage no longer grows from retained indexes.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.