Share via

Unable to delete Azure Foundry

Sunil S 0 Reputation points
2026-03-26T12:05:26.6666667+00:00

My Azure Foundry is not getting deleted and keep costing me

Foundry Tools
Foundry Tools

Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform

0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2026-03-26T12:05:49.4566667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To stop charges and fully remove Azure Foundry resources, both the Foundry project/hub and the underlying Azure resources must be deleted. Deletion behavior differs between classic hubs and the new Foundry experience.

    1. Identify whether this is a classic Foundry hub or a new Foundry project/resource
      • Classic: Managed as a Foundry hub.
      • New: Managed as a Foundry project under a Microsoft Foundry Azure resource.
    2. If using a classic Foundry hub
      1. In Foundry, select the hub.
      2. In Hub properties, select Delete hub.
        • This deletes the hub and all associated projects and nested endpoints.
        • Optionally delete connected resources, but only if no other applications use them.
      3. After deleting the hub, check the resource group in the Azure portal for remaining resources that can still accrue costs (for example: Azure Container Registry, Azure Blob Storage, Key Vault, Application Insights) and delete them if they are no longer needed.
    3. If using the new Foundry projects
      1. Delete projects in the Foundry portal:
        • Go to Microsoft Foundry with New Foundry enabled.
        • Select OperateAdmin.
        • Select each project and use the trash can icon to delete it.
        • Note: Projects do not support soft delete and cannot be recovered after deletion.
      2. Optionally delete projects via Azure CLI or Python SDK if portal deletion fails:
        • Azure CLI example:
                  az cognitiveservices account project delete \
                    --name <foundry-resource-name> \
                    --resource-group <resource-group-name> \
                    --project-name <project-name>
          
        • Python SDK example (loop through and delete all projects, then delete the Foundry resource):
                  projects = client.projects.list(resource_group_name, foundry_resource_name)
                  
                  for project in projects:
                      print("Deleting project:", project.name)
                      client.projects.begin_delete(
                          resource_group_name,
                          foundry_resource_name,
                          project_name=project.name.split('/')[-1]
                      ).wait()
                  
                  print("Deleting resource:", foundry_resource_name)
                  client.accounts.begin_delete(resource_group_name, foundry_resource_name).wait()
          
    4. Delete the Foundry Azure resource or entire resource group
      • In the Azure portal:
        1. Go to Resource groups.
        2. Open the resource group that contains the Microsoft Foundry resource.
        3. Either:
          • Delete the entire resource group (removes all contained resources), or
          • Select only the Foundry resource and delete it.
    5. Ensure no dependent resources continue to accrue costs
      • Even after deleting Foundry hubs/projects, some Azure resources can remain and continue billing (for example: Storage accounts, Key Vault, Container Registry, Application Insights, VMs, load balancers, virtual networks, bandwidth, PTU-based deployments).
      • For PTU-based Azure OpenAI/Foundry deployments:
        1. Delete the PTU deployments in the Foundry portal first.
        2. Then delete and purge the Azure AI resource so that charges stop.
        3. Manage or cancel reservations from the Reservations page in the Azure portal if needed.
    6. Recovery and soft delete considerations
      • Foundry projects do not support soft delete and cannot be recovered once deleted.
      • Some underlying services (for example, Azure Storage, Key Vault) may have soft delete enabled; these can be recovered separately if needed.

    If deletion still fails after these steps, check for:

    • Remaining deployments or endpoints under the project/hub.
    • Other applications using shared resources in the same resource group.
    • Resource locks or RBAC restrictions on the resource group or individual resources.

    References:

    0 comments No comments

Your answer

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