cant delete the project in azure ai foundry?

Roohi Belur Raheem 20 Reputation points
2025-06-10T06:44:59.3933333+00:00

I am unable delete a resource group which has project from azure ai foundry. Cant delete the project as well.

User's image

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,604 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Ravada Shivaprasad 535 Reputation points Microsoft External Staff Moderator
    2025-06-10T23:17:06.52+00:00

    Hi Roohi Belur Raheem

    If you're unable to delete a resource group that contains a project from Azure AI Foundry and the project itself also resists deletion—this is a known issue that can stem from several underlying causes. Azure AI Foundry projects often create multiple interdependent resources such as models, agents, storage accounts, and networking components. If any of these are still active, locked, or governed by policies like deny assignments, they can block deletion. Even if you have Owner or Contributor roles, deny assignments can override your permissions and prevent deletion actions.

    Additionally, if your project uses Provisioned Throughput Units (PTUs), there may be backend quota locks or capacity reservations that need to be released before deletion is possible. Some models or services deployed through Foundry—especially those in preview or partner-managed—may not support deletion through the Azure Portal and require CLI or REST API workarounds. To resolve this, start by listing all resources in the group using the Azure CLI and ensure they are deallocated or deleted. Then, attempt deletion using CLI with force-deletion flags. If that fails, check for deny assignments and escalate to your Azure administrator. As a last resort, you may need to open a support ticket with Microsoft, providing details like the subscription ID, region, model type, and any error messages.

    Reference : Customer enabled disaster recovery , Azure Migrate Project Deletion Documentation

    Thanks


  2. Manas Mohanty 5,705 Reputation points Microsoft External Staff Moderator
    2025-06-10T23:28:19.8966667+00:00

    Hi Roohi Belur Raheem

    That particular Azure AI foundry project might be in hanged state.

    Please try deleting the RG/Foundry hub project from Azure CLI and let us know.

    Also make sure to delete underlying dependent resources prior.

    Deleting RG from CLI

    az group delete --name <yourrgname> --no-wait True --yes True #for deleting the RG
    
    
    

    Reference

    https://learn.microsoft.com/en-us/cli/azure/group?view=azure-cli-latest#az-group-delete

    Deleting Foundry based project from CLI

     az ml workspace delete 
    

    Reference

    https://learn.microsoft.com/en-us/cli/azure/ml/workspace?view=azure-cli-latest#az-ml-workspace-delete

    https://learn.microsoft.com/en-us/azure/ai-foundry/how-to/create-projects?tabs=azurecli&pivots=hub-project

    Hope it helps

    Thank you.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.