Remove-SPOTenantCdnOrigin

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

Syntax

Remove-SPOTenantCdnOrigin
      -CdnType <SPOTenantCdnType>
      [-Confirm]
      -OriginUrl <String>
      [-WhatIf]
      [<CommonParameters>]

Description

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

Examples

EXAMPLE 1

Remove-SPOTenantCdnOrigin -CdnType Public -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.

EXAMPLE 3

Remove-SPOTenantCdnOrigin -CdnType Private -OriginUrl /sites/branding/Assets

This example removes a recently-removed organizational assets library from a CDN.

Parameters

-CdnType

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

Type:SPOTenantCdnType
Accepted values:Public, Private
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-OriginUrl

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 "/masterpages" 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.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

Inputs

None

Outputs

System.Object