qdrant icon indicating copy to clipboard operation
qdrant copied to clipboard

Feature Request: Truncate API

Open myyrakle opened this issue 2 months ago • 2 comments

Is your feature request related to a problem? Please describe. When implementing and testing features, it's often necessary to delete and recreate data. However, qdrant doesn't have this feature, so the quickest way is to delete the table and then recreate it. However, this is quite cumbersome. It would be nice to have a feature that could solve this problem.

Describe the solution you'd like Add a "truncate" API to remove all data from a specific collection.

Describe alternatives you've considered none

Additional context none

myyrakle avatar Nov 04 '25 12:11 myyrakle

Hey! Thanks for the proposal!

Have you considered delete-by-filter API with empty filter? It is not really recommended to use in production, as record-by-record deletion might be slow on large scale, but for experimenting it should do the work.

generall avatar Nov 05 '25 09:11 generall

Oh! I didn't know there was an empty filter. Sure, it might not be great for performance, but it might be useful for light use cases.

However, in my case, I often experiment with and delete millions of data units, so it would be nice to have an optimized function.

I understand if you think this is a trivial feature. If you disagree with its necessity, I'll close this issue.

myyrakle avatar Nov 05 '25 16:11 myyrakle