Remove-SPOTenantCdnOrigin

 

Applies to: SharePoint Online

Topic Last Modified: 2016-11-18

Removes a new origin from the Public or Private content delivery network (CDN).

Remove-SPOTenantCdnOrigin -CdnType <Public | Private> -OriginUrl <String> [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]]

--------EXAMPLE 1--------

Remove-SPOTenantCdnOrigin -CdnType Public -OriginScope Tenant -OriginUrl sites/pubsite/siteassets/subfolder

The example removes a CDN from a tenant level.

--------EXAMPLE 2--------

Remove-SPOTenantCdnOrigin -CdnType Public -OriginScope Site  -Site https://contoso.sharepoint.com/sites/pubsite -OriginUrl siteassets/subfolder

The example removes a CDN from a site level.

 

Parameter Required Type Description

CdnType

Required

Microsoft.Online.SharePoint.TenantAdministration.SPOTenantCdnType

Specifies the CDN type. The valuid values are: Public or Private.

OriginUrl

Required

System.String

Specifies a path to the doc library to be configured. It can be provided in two ways: relative path, or a mask.

  • Relative-Relative path depends on the OriginScope. If the originScope is Tenant, a path must be a relative path under the tenant root. If the originScope is Site, a path must be a relative path under the given Site. The path must point to the valid Document Library or a folder with a document library.

    Any asset stored under the path provided (in the container itself or any of its subfolders) will be exposed via CDN

  • Mask - Mask allows to configure a partial URL match. It must start with */, and must not include * anywhere else. I.e. an origin “*/masterpates” will expose all the assets under all the masterpages libraries, either under the tenant root (means, anywhere in the tenancy) or in the given site collection, depends on the OriginScope parameter. Equally, */masterpages/subfolder will enable items in “subfolder” and below.

Confirm

Optional

System.Management.Automation.SwitchParameter

Prompts you for confirmation before executing the command. For more information, type the following command: get-help about_commonparameters

WhatIf

Optional

System.Management.Automation.SwitchParameter

Displays a message that describes the effect of the command instead of executing the command. For more information, type the following command: get-help about_commonparameters

Show: