Remove-SPOOrgAssetsLibrary

删除指定为整个租户中组织资产中心位置的库。

语法

RemoveLibrary (默认值)

Remove-SPOOrgAssetsLibrary
    [-LibraryUrl <String>]
    [-ListId <Guid>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

BrandCenter

Remove-SPOOrgAssetsLibrary
    [-BrandCenter]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

说明

Remove-SPOOrgAssetsLibrary cmdlet 将删除指定为整个租户中组织资产中心位置的库。 运行此 cmdlet 后,将无法再从文件选取器中的“你的组织”选项卡访问此库, (可能需要长达 24 小时才能应用更改) 。 运行 cmdlet 时,需要指明库 URL 或库 ID (不是两者) 。

与参数 -BrandCenter 一起使用时,此 cmdlet 将删除与 Brand Center 相关的组织资产库,并停用租户的 Brand Center 功能。

删除库后,仍将为此库启用 CDN。 若要禁用此库的 CDN,请将 Remove-SPOTenantCdnOrigin 与服务器相对 URL 配合使用, (例如:/sites/branding/assets) 。

示例

示例 1

此示例使用库 ID 作为指定库进行删除 https://contoso.sharepoint.com/sites/branding/Assets 。 将无法再从文件选取器中的“你的组织”选项卡访问此库中的资产。

Remove-SPOOrgAssetsLibrary -ListId 58454454-6546-6466-9769-646464623988

示例 2

此示例删除与Brand Center相关的组织资产库,并停用租户的Brand Center功能。

Remove-SPOOrgAssetsLibrary -BrandCenter

参数

-BrandCenter

适用:SharePoint Online

停用租户的品牌中心功能。

参数属性

类型:System.Management.Automation.SwitchParameter
默认值:None
支持通配符:False
不显示:False

参数集

BrandCenter
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Confirm

提示你在运行 cmdlet 之前进行确认。

参数属性

类型:System.Management.Automation.SwitchParameter
默认值:None
支持通配符:False
不显示:False
别名:cf

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-LibraryUrl

适用:SharePoint Online

指示要作为组织资产中心位置删除的库的服务器相对 URL。

参数属性

类型:System.String
默认值:None
支持通配符:False
不显示:False

参数集

RemoveLibrary
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-ListId

适用:SharePoint Online

指示要作为组织资产中心位置删除的库的库 ID。

参数属性

类型:System.Guid
默认值:None
支持通配符:False
不显示:False

参数集

RemoveLibrary
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-WhatIf

显示在 cmdlet 运行时发生的情况。 此 cmdlet 未运行。

参数属性

类型:System.Management.Automation.SwitchParameter
默认值:None
支持通配符:False
不显示:False
别名:WI

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

CommonParameters

此 cmdlet 支持以下常用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。

输入

None

输出

System.Object