Q: Removing a custom domain from an Azure Static Web App I'm trying to delete two custom domains from my Azure Static Web App. I'm getting notifications saying that the custom domains have been deleted.
But they still are stuck in the list view as Deleting.
Tried to delete several times but still they refuse to be removed from the list.
Does anyone know the reason behind this?


A: *

*Sometimes it gets Stucks and takes long time to refresh the list to display the Added or deleted Custom Domains

*We can confirm this by running command in Azure CLI

As per Get-AzStaticWebAppCustomDomain and Remove-AzStaticWebAppCustomDomain documents ,
To Get the list of Custom Domains of the Static Web App run below Command
Get-AzStaticWebAppCustomDomain -ResourceGroupName YourRGName -Name StaticWebAppName



*

*If you are still seeing the custom domains list even after deleting them manually, run the below command to remove them

Remove-AzStaticWebAppCustomDomain -ResourceGroupName YourRGName -Name StaticWebAppName -DomainName YourdomainName


*

*For me it is shown as Still deleting in progress, but with the Get-AzStaticWebAppCustomDomain  I am not able to see the deleted custom domain.

