Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform
I’ve seen this before with Azure AI and Foundry resources, and the error is accurate.
You can’t delete the Cognitive Services account because it still has at least one deployment attached to it. Azure blocks the entire resource group deletion until every model deployment under that account is removed.
To fix your issue, open the Cognitive Services resource itself and go to the “Models + endpoints” blade. Even if the screen looks empty, switch tabs and check “Service endpoints” or any model deployments listed there. Foundry deployments sometimes hide there and don’t show up in the regular RG view.
Delete every deployment under that account first. Once the deployments are gone, Azure will allow the Cognitive Services account to delete, and the resource group will remove cleanly.
Every time I’ve run into this, removing the hidden deployment is what unblocked the deletion.