Trying to delete a custom domain in my Static Web App - It is stuck in a delete state

Jayson K 25 Reputation points
2026-08-12T04:19:19.76+00:00

I was trying to add a custom domain to my Static Web App. It was unable to verify my DNS settings and I tried to delete the custom domain in my Azure Portal. There has been a spinner on the record saying "Deleting" for about 5 hours. I have tried adding the domain as a new one, but I cant as there is still the domain stuck in a delete state.

I have also tried to delete in the command line but it says the same thing. Not sure where to go from here.

Azure DNS
Azure DNS

An Azure service that enables hosting Domain Name System (DNS) domains in Azure.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Senthil kumar 2,245 Reputation points
    2026-08-12T05:00:52.8566667+00:00

    Hi @Jayson K

    Azure Portal → Front Door → Custom domains your domain name found delete from here.

    Azure Portal → Static Web Apps → Your SWA → Custom domains check here your domain name still found or not.

    Azure will refuse deletion if old verification records still exist.

    Delete these from your DNS provider:

    • TXT record starting with asverify.<yourdomain>
    • CNAME pointing to *.azurestaticapps.net
    • CNAME pointing to *.azurewebsites.net

    Thanks.

    Was this answer helpful?

    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.