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
James Coone commented
Any updates on this? it has been 2 years since the last comment, 5 years since the initial request.
Shawn Van Vleet commented
We could really use this! Deleting & recreating the index is not an acceptable solution.
David Fahy commented
Any update on this? It's ridiculous that you have to delete the entire index to clear it
Any update on this?
Igor V Savchenko commented
Any updates on this? Would really love to have possibility to clear all data from an index
Gautam Chawla commented
In present situation, there is no way to dump all the documents at once so only way to empty an index it to delete the index and recreate it.
Could really do with this being implemented.
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.
[Deleted User] commented
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?