Skip to content

spo cdn origin remove

Removes CDN origin for the current SharePoint Online tenant


spo cdn origin remove [options]


Option Description
--help output usage information
-t, --type [type] Type of CDN to manage. Public|Private. Default Public
-r, --origin <origin> Origin to remove from the current CDN configuration
--confirm Don't prompt for confirming removal of a tenant property
-o, --output [output] Output type. json|text. Default text
--verbose Runs command with verbose logging
--debug Runs command with debug logging


Before using this command, log in to a SharePoint Online tenant admin site, using the spo login command.


To remove an origin from an Office 365 CDN, you have to first log in to a tenant admin site using the spo login command, eg. spo login If you are logged in to a different site and will try to manage tenant properties, you will get an error.

Using the -t, --type option you can choose whether you want to manage the settings of the Public (default) or Private CDN. If you don't use the option, the command will use the Public CDN.


Remove */CDN from the list of origins of the Public CDN

spo cdn origin remove -t Public -r */CDN

More information