I don't know whether this was resolved manually on Microsoft's side or whether it happened automatically, but after Microsoft contacted me privately I found that everything began working as it should.
Cannot delete custom domain because it is still directly or indirectly (using "cdnverify" prefix) CNAMEd to CDN endpoint
I want to delete an Azure CDN endpoint, but I can't because Azure won't permit me to delete the custom domains associated with it. When I try, either via the portal or Azure CLI, I get this error:
Cannot delete custom domain "[custom domain name]" because it is still directly or indirectly (using "cdnverify" prefix) CNAMEd to CDN endpoint "[endpoint name]". Please remove the DNS CNAME record and try again.
I deleted the CNAME records more than 16 hours ago.
I have executed this command to no avail:
az feature register --namespace Microsoft.Network --name BypassCnameCheckForCustomDomainDeletion
I have verified that the feature is registered.