Edit

Share via


Remove-SPOTenantCdnOrigin

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

Syntax

Default (Default)

Remove-SPOTenantCdnOrigin
    -OriginUrl <String>
    -CdnType <SPOTenantCdnType>
    [-WhatIf]
    [-Confirm]
    [<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

Applicable: SharePoint Online

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

Parameter properties

Type:Microsoft.Online.SharePoint.TenantAdministration.SPOTenantCdnType
Default value:None
Accepted values:Public, Private
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Confirm

Applicable: SharePoint Online

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:System.Management.Automation.SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-OriginUrl

Applicable: SharePoint Online

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.

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

Applicable: SharePoint Online

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

Parameter properties

Type:System.Management.Automation.SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

None

Outputs

System.Object