chroma-core / chroma-core/chroma
[Bug]: HNSW directories do not get deleted when the collection is deleted
- 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