Remove-SPOContainer

将容器发送到回收站。

语法

Default (默认值)

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

说明

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
默认值:None
支持通配符:False
不显示:False
别名:cf

参数集

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

-Force

适用:SharePoint Online

是否在不提示确认的情况下删除容器。

参数属性

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

参数集

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

-Identity

适用:SharePoint Online

使用此参数提供 ContainerId 要删除的容器的 。

参数属性

类型:Microsoft.Online.SharePoint.PowerShell.SPOContainerPipeBind
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:0
必需:True
来自管道的值: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