Muokkaa

Jaa


Remove-SPOPublicCdnOrigin

Removes a given public CDN origin based on its identity (id) in your SharePoint Online Tenant

Syntax

Remove-SPOPublicCdnOrigin
      [-Identity] <String>
      [-Confirm]
      [-WhatIf]
      [<CommonParameters>]

Description

This cmdlet will remove a Public CDN Origin based on its identity.

Examples

EXAMPLE 1

#Get a list of CDN origins

Get-SPOPublicCdnOrigins
Id                                                                       Url
--                                                                       ---
11270051ee79e73829f6e7a3ee5d900d49c4fc5901645c642b799ecb62787a5069ca80fb HTTPS://CONTOSO.SHAREPOINT.COM/SITES/CDN...
#then remove the CDN by Identity id GUID.
Remove-SPOPublicCdnOrigin -Identity 11270051ee79e73829f6e7a3ee5d900d49c4fc5901645c642b799ecb62787a5069ca80fb

This example returns a list of CDN origins and then removes an origin based on the identity.

Parameters

-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

-Identity

It's the unique identifier of the Public CDN path, it can be queried using the Cmdlet Get-SpoPublicCdnOrigins

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:True
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