Unable to decommission Azure Front Door - DNS related problem

EnterpriseArchitect 6,161 Reputation points
2025-07-31T14:36:12.1766667+00:00

When I am trying to delete a CDN from the Azure Portal, I get this error message:

Cannot delete custom domain "shop.cafebox.com" because it is still directly or indirectly (using "cdnverify" prefix) CNAMEd to CDN endpoint "bigcitycafewebcontainer.azureedge.net". Please remove the DNS CNAME record and try again.

How can I delete it successfully?

Azure Front Door
Azure Front Door
An Azure service that provides a cloud content delivery network with threat protection.
{count} votes

Accepted answer
  1. Ganesh Patapati 8,760 Reputation points Microsoft External Staff Moderator
    2025-07-31T16:10:28.56+00:00

    Hello EnterpriseArchitect

    If the DNS records are already removed but Azure still blocks deletion, you can try registering a feature flag:

    az feature register --namespace Microsoft.Cdn --name BypassCnameCheckForCustomDomainDeletion
    

    Make sure you're using Microsoft.Cdn (not Microsoft.Network) as the namespace.

    After registering, wait for the feature to be enabled (you can check with az feature show) and then retry the deletion.


    I hope this has been helpful!

    If the above is unclear or you are unsure about something, please add a comment below. Please don’t forget to close the thread by clicking "Accept the answer" and "Yes" wherever the information provided helps you, as this can be beneficial to other community members.

    Accepted answer

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.