Remove-PnPOrgAssetsLibrary
SYNOPSIS
Required Permissions
- SharePoint: Access to the SharePoint Tenant Administration site
Removes a given document library as an organizational asset source.
SYNTAX
Remove-PnPOrgAssetsLibrary -LibraryUrl <String> [-ShouldRemoveFromCdn <Boolean>] [-CdnType <SPOTenantCdnType>]
[-Connection <PnPConnection>]
DESCRIPTION
Removes a given document library as an organizational asset source based on its server relative URL in your SharePoint Online tenant. It will not remove the document library itself. It may take some time before this change will be reflected in the web interface.
EXAMPLES
EXAMPLE 1
Remove-PnPOrgAssetsLibrary -LibraryUrl "sites/branding/logos"
This example removes the document library "logos" residing in the site collection with the url "sites/branding" from the list with organizational assets keeping it as an Office 365 CDN source.
EXAMPLE 2
Remove-PnPOrgAssetsLibrary -LibraryUrl "sites/branding/logos" -ShouldRemoveFromCdn $true
This example removes the document library "logos" residing in the site collection with the url "sites/branding" from the list with organizational assets also removing it as a Public Office 365 CDN source.
EXAMPLE 3
Remove-PnPOrgAssetsLibrary -LibraryUrl "sites/branding/logos" -ShouldRemoveFromCdn $true -CdnType Private
This example removes the document library "logos" residing in the site collection with the url "sites/branding" from the list with organizational assets also removing it as a Private Office 365 CDN source.
PARAMETERS
-CdnType
Indicates what type of Office 365 CDN source the document library that will no longer be flagged as an organizational asset was of
Type: SPOTenantCdnType
Parameter Sets: (All)
Accepted values: Public, Private
Required: False
Position: Named
Default value: Public
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
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-LibraryUrl
The server relative url of the document library flagged as organizational asset which you want to remove, i.e. "sites/branding/logos"
Type: String
Parameter Sets: (All)
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ShouldRemoveFromCdn
Boolean indicating if the document library that will no longer be flagged as an organizational asset also needs to be removed as an Office 365 CDN source.
Type: Boolean
Parameter Sets: (All)
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False