Disable CDN support for the Sitecore Media Library
This topic describes how to disable and remove the Microsoft Azure® Content Delivery Network (CDN) support for the Sitecore Media Library.
Disable the CDN support for the Sitecore Media Library
To disable the CDN support for the Sitecore Media Library:
-
Go to the Sitecore Deployed folder,
App_Config\Include\CDN, and find theCDN.Configpatch configuration file. -
Remove the file or change the extension to something else, for example:
CDN.config.exampleorCDN.config.disabledAfter you have removed the file or changed the file extension, the URLs generated by the options mentioned in Developer Considerations for the Sitecore Media Library CDN support, in the section: Get a CDN-enabled Media Item URL, will not include the CDN URL.
Remove the CDN profile and endpoints
To remove the CDN completely and disable Sitecore configurations, you must also remove the CDN profile and endpoint which are created during the set up. If you do not, then you will be charged by the CDN provider for CDN endpoint usage.
Work through the following step to delete the Azure CDN profile:
-
Log in to the Azure portal.
-
Navigate to the CDN profile you want to delete.
-
Click Delete link.
-
Click Yes, if you want to delete the profile and all its endpoints.