qdrant/qdrant

Add deletion protection for collections

Closed this issue · 3 comments

Is your feature request related to a problem? Please describe.
We would like to prevent accidental deletions of collections.

Describe the solution you'd like
Create a new config option on the collection like:

deletion_protection: true (default: false)
or
protected: true (default: false)

This would cause Qdrant to return a 403 on the deletion call if the collection is protected.

Describe alternatives you've considered
Being more careful with code.

Additional context
Add any other context or screenshots about the feature request here.
Why do we need this? We had a rogue client.recreate_collection still in our code and it deleted a collection due to an unfortunate sequence of events that ended up triggering it. Would love to prevent accidental deletions like this.

Seriously though, we will deprecate recreate_collection for good

recreate_collection is deprecated in the latest version f qdrant client