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 会删除与品牌中心相关的组织资产库,并停用租户的品牌中心功能。

删除库后,仍将为此库启用 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

此示例删除与品牌中心相关的组织资产库,并停用租户的品牌中心功能。

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
别名:无线

参数集

(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