-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question]: Azure AI Search Index delete #17539
Comments
Hey, @krupalsmart97! 👋 I'm here to help you with bugs, questions, or becoming a contributor. Let's squash those bugs together! To delete an Azure AI Search index using the LlamaIndex framework, you can use the
These methods locate documents to delete using a filter based on the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
@dosu , so I know that I can delete a document indexed inside an index but my question is how to delete the entire index not just one document |
Could you provide more details about the tools or SDKs you're using to interact with Azure AI Search? This will help me guide you on how to delete the entire index. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
@dosu I am using the llama index for interaction |
The LlamaIndex framework does not explicitly provide a method to delete an entire Azure AI Search index. However, you can manage Azure AI Search indexes using the Azure SDK for Python, which provides the necessary functionality to delete an entire index. Here's a basic example of how you can delete an Azure AI Search index using the Azure SDK: from azure.search.documents.indexes import SearchIndexClient
from azure.core.credentials import AzureKeyCredential
# Replace with your Azure Search service details
endpoint = "https://<your-service-name>.search.windows.net"
admin_key = "<your-admin-key>"
index_name = "<your-index-name>"
# Create a client
client = SearchIndexClient(endpoint=endpoint, credential=AzureKeyCredential(admin_key))
# Delete the index
client.delete_index(index_name) Make sure to replace To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
@dosu, thanks for the answer, will try this approach. |
You're welcome! If you run into any issues or have further questions while trying this approach, feel free to reach out. Good luck! To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Question Validation
Question
Hey,
I am trying to delete the Azure AI Search index that I created using the Lama index. I reviewed the documentation but could not find any reference for it.
Can you help me with it by pointing me in the right direction or documentation?
Thanks in advance
The text was updated successfully, but these errors were encountered: