Can't delete index because of agent #126
-
I got this error message.
It occurs after I used agentic retriever. I saw someone who went through the same error in discord server. But I have nothing in private network in Azure AI Search. I don't know what should I do and where does the agent is placed? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
So this looks like a Azure Foundry dependency lock. That error means your index Here’s how to cleanly resolve it: Step-by-Step Fix: Remove Agent Reference Before Deleting Index
az foundry agent delete --name jsa-safety-agent
az foundry index delete --name masterjsa Optional: Audit Dependencies az foundry index show --name masterjsa --query "referencedBy" This will list all agents, flows, or pipelines still linked to it. |
Beta Was this translation helpful? Give feedback.
-
I ran into this too — turns out the index was still bound to the agent via the agentic retriever. What worked for me:
After unbinding, I could delete the index without issues. You can also check what’s still referencing it with:
Hope that helps others hitting the same lock! |
Beta Was this translation helpful? Give feedback.
I ran into this too — turns out the index was still bound to the agent via the agentic retriever. What worked for me:
After unbinding, I could delete the index without issues. You can also check what’s still referencing it with:
Hope that helps others hitting the same lock!