Remove-PnPTenantCdnOrigin

Tip

We encourage you to make improvements to this documentation. Please navigate to https://github.com/pnp/powershell/blob/dev/documentation/Remove-PnPTenantCdnOrigin.md to change this file.

Required Permissions

  • SharePoint: Access to the SharePoint Tenant Administration site

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

Syntax

Remove-PnPTenantCdnOrigin
      -OriginUrl <String>
      -CdnType <SPOTenantCdnType>
      [-Connection <PnPConnection>]
      [<CommonParameters>]

Description

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

You must be a SharePoint Online global administrator to run the cmdlet.

Examples

EXAMPLE 1

Remove-PnPTenantCdnOrigin -OriginUrl /sites/site/subfolder -CdnType Public

This example removes the specified origin from the public CDN

Parameters

-CdnType

The cdn type to remove the origin from.

Type:SPOTenantCdnType
Accepted values:Public, Private
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Connection

Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

Type:PnPConnection
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-OriginUrl

The origin to remove.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False