Possibility to delete all documents in an index without deleting and recreating the index
You should provide a possibility to delete all documents in an index without having to delete it and creating it again.
Thank you for your feedback. We’re considering this for a future release of Azure Search.
Azure Search Product Team
This would be helpful, when we are resetting data in different sprint and system test environments
This is such a simple and useful feature, cannot believe after two years, it is still not implemented.
Youngjae KIM commented
Koponestan کوپنستان commented
There are times when we make changes to database and we want to start over. There should be a way for us to remove all the items that are already being indexed and start over again.
We need this for security and compliance - deleting the index and recreating it causes a scenario in production whereby the index may not always exist when a new document needs to be inserted into it.
At least with a delete all, it will delete all the existing documents and either create an exclusive lock to pause new inserts or allow inserts which are held in a separate transaction.
Adam Bull commented
Any progress on this?