Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
I understand that you would like to purge the contents of CDN using Azure CLI.
After further investigation, we found that the resource was actually an AFD and not a CDN.
In that case, the command becomes,
az afd endpoint purge -g <group> --profile-name <profile> --endpoint-name <endpoint> --content-paths '/*'
Refer : Cache purging in Azure Front Door with Azure CLI
NOTE:
- The "az afd" is in preview
- Please use "az upgrade" to get the latest version.
Thanks,
Kapil
Please Accept an answer if correct.
Original posters help the community find answers faster by identifying the correct answer.