Remove-SPOOrgAssetsLibrary

移除已指定為整個租用戶組織資產的中央位置的媒體櫃。

語法

RemoveLibrary (預設值)

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

BrandCenter

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

Description

Remove-SPOOrgAssetsLibrary Cmdlet 會移除已指定為整個租用戶組織資產中央位置的媒體櫃。 執行此 Cmdlet 之後,將無法再從檔案選擇器中的 [您的組織] 索引標籤存取此文件庫, (可能需要最多 24 小時,變更才會套用) 。 執行 Cmdlet 時,必須同時指出文件庫 URL 或文件庫識別碼 (兩者) 。

與參數搭配 -BrandCenter 使用時,此 Cmdlet 會移除 Brand Center 相關的組織資產庫,並停用租用戶的 Brand Center 功能。

移除程式庫之後,系統仍會為此程式庫啟用 CDN。 若要停用此程式庫的CDN,請使用 Remove-SPOTenantCdnOrigin 搭配伺服器相對URL (範例:/sites/branding/assets) 。

範例

範例 1

此範例會使用媒體櫃識別碼來刪除 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

停用租用戶的 Brand Center 功能。

參數屬性

類型: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