Remove-SPOOrgAssetsLibrary
Removes a library that was designated as a central location for organization assets across the tenant.
Syntax
Remove-SPOOrgAssetsLibrary
[-LibraryUrl <String>]
[-ListId <Guid>]
[<CommonParameters>]
Description
The Remove-SPOOrgAssetsLibrary cmdlet removes a library that was designated as a central location for organization assets across the tenant. Once this cmdlet is run, this library will no longer be accessible from the "Your organization" tab in the file picker (it might take up to 24 hours before the change applies). When running the cmdlet, either the library URL or library ID (not both) needs to be indicated.
Once the library is removed, CDN will still be enabled for this library. To disable CDN for this library, use Remove-SPOTenantCdnOrigin with the server relative URL (example: /sites/branding/assets).
Examples
Example 1
This example removes https://contoso.sharepoint.com/sites/branding/Assets as a designated library using the library ID. Assets within this library will no longer be accessible from the "Your organization" tab in the file picker.
Remove-SPOOrgAssetsLibrary -ListId 58454454-6546-6466-9769-646464623988
Parameters
-LibraryUrl
Indicates the server relative URL of the library to be removed as a central location for organization assets.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-ListId
Indicates the library ID for the library to be removed as a central location for organization assets.
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |