Share via

Not able to delete container app

SR 25 Reputation points
2026-02-11T11:01:02.8566667+00:00

I had created a container app and tested it. But now I am not able to delete it.
I have deleted all the resources in the resource group but still not able to delete this container app.
I also tried to move this container app to other new resource group and then tried to delete it but still unable to delete it.
I am not sure if I am still paying for that resource of not.

Azure Container Apps
Azure Container Apps

An Azure service that provides a general-purpose, serverless container platform.

{count} votes

Answer accepted by question author
  1. Pravallika KV 11,110 Reputation points Microsoft External Staff Moderator
    2026-02-11T11:06:04.5833333+00:00

    Hi @SR,

    Thanks for reaching out to Microsoft Q&A.

    As per the system design, a managed environment that is referenced by a builder resource cannot be deleted. In your case, the builder bxxxxxxa6 references the managed environment you are trying to delete.

    • If you want to delete the managed environment, the dependent builder resource must be deleted first.
    • If you intend to continue using the builder, the managed environment cannot be deleted, as it is a hard-linked resource required for the builder to function. Deleting it while the builder exists would make the builder non-functional.

    Hope this helps!


    If the resolution was helpful, kindly take a moment to click on User's imageand click on Yes for was this answer helpful. And, if you have any further query do let us know.

    1 person found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Alex Lam 0 Reputation points
    2026-02-28T15:23:39.3966667+00:00

    I encountered a similar issue where I couldn't delete a Container App Environment because it reported having container apps.

    I suspect the resource group containing the container apps was deleted before the apps themselves were properly removed. This left orphaned metadata in ARM that the environment still referenced.

    So I tried 'Overwrite and Delete'. I recreated the missing resource group, recreate the container app with the same name (this overwrites the orphaned metadata with valid state), and then delete the container app.

    This unblocked normal deletion and allowed me to finally delete the environment.

    0 comments No comments

  2. Alex Burlachenko 19,615 Reputation points Volunteer Moderator
    2026-02-11T13:21:13.7133333+00:00

    Hi SR,

    I would first check that I am in the correct subscription. It is very easy to switch subscriptions in the Azure portal without noticing. Sometimes the container app is actually in another subscription even if the resource group name looks the same.

    Then check whether the Container Apps environment still exists. In Azure Container Apps the app depends on the environment. If the environment is still there or stuck in a deleting state, the app may not be removable. Try deleting it using the Azure CLI instead of the portal, because sometimes the portal just does not refresh properly.

    az containerapp delete --name <app-name> --resource-group <rg-name> --yes

    For billing, I would not worry too much about the container app object itself. You are usually charged for the environment and related services like Log Analytics, not just for the app entry. If the environment and other resources are gone, you are most likely not being charged.

    If there is an exact error message when trying to delete it, that would help understand what is really happening. If there is an error message when you try to delete it, sharing that would help.

    rgds,

    Alex


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.