共用方式為


Remove-SPOContainer

將容器傳送至回收站。

語法

Remove-SPOContainer
      [-Identity] <SPOContainerPipeBind>
      [-Force]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

Cmdlet Remove-SPOContainer 會刪除檔案記憶體容器,並將它放在回收站中。 Cmdlet 將不再擷取已刪除的 Get-SPOContainer 容器。

當系統管理員刪除容器時,它會移至回收站。 已刪除的 容器可在 93天內從回收站還原。 如果容器從回收站中刪除,或超過93天的保留期間,則會永久刪除。 刪除容器會刪除其中的所有專案,包括所有檔案和檔案。 您可以使用 Cmdlet 在回收站中檢視所有已刪除的 Get-SPODeletedContainer 容器。

您至少必須是 SharePoint Online 系統管理員,才能執行 Cmdlet。

範例

範例 1

Remove-SPOContainer -Identity 423poi45-jikl-9bnm-b302-1234ghy56789

範例 1 會將具有 的 ContainerId423poi45-jikl-9bnm-b302-1234ghy56789 容器放入回收站。 除非在永久 刪除之前還 原已刪除的容器,否則容器會在 93 天后從回收站永久刪除。

參數

-Confirm

執行 Cmdlet 之前提示您確認。

類型:System.Management.Automation.SwitchParameter
別名:cf
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Force

{{ 填滿強制描述 }}

類型:System.Management.Automation.SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Identity

適用:SharePoint Online

使用此參數來提供 ContainerId 要移除之容器的 。

類型:Microsoft.Online.SharePoint.PowerShell.SPOContainerPipeBind
Position:0
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-WhatIf

顯示執行 Cmdlet 時會發生什麼情況。 未執行 Cmdlet。

類型:System.Management.Automation.SwitchParameter
別名:wi
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

輸入

None

輸出

System.Object