Remove-SPOTenantCdnOrigin

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

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 -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.

Required Parameters

-CdnType

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

Type:SPOTenantCdnType
Parameter Sets:Public, Private
Position:Named
Default value:None
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 “/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.

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

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
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
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

Inputs

None

Outputs

System.Object