Hi @Behr, Todd
It seems you are having issues with bulk deletion of documents in Azure Search. Although the REST API shows successful deletion requests (with a 200 HTTP response), the documents may still remain in the index
- Deletions might not be immediately reflected in the index due to the background process that updates the index statistics.
- Deleting a non-existent document will still return a 200 status code, which can make it seem like the document was deleted.
- Concurrent operations modifying the same documents can cause version conflicts, preventing some deletions.
- Heavy service load may cause some delete requests to not be processed as expected. Implementing a retry mechanism or throttling requests might help.
check the status of the documents still in the index to ensure they are not being recreated or modified by other processes. A loop to check the state of the index after deletions might be necessary.
References:
- Add, Update or Delete Documents (Azure AI Search REST API)
- Bulk delete in Azure API for FHIR
Let me know if you have any further assistance needed.