Remove-SPODeletedContainer

从回收站永久删除指定的容器。 此操作无法撤消。

语法

Default (默认值)

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

说明

cmdlet Remove-SPODeletedContainer 从回收站永久删除已删除的文件存储容器。 无法恢复永久删除的容器。 必须至少是 SharePoint Online 管理员才能运行 cmdlet。

重要

我们通常不建议永久删除容器。

有关适用于 SharePoint Online 的 Windows PowerShell 的权限和最新信息,请参阅在线文档简介 SharePoint Online 命令行管理程序的简介

示例

示例 1

Remove-SPODeletedContainer -Identity b66f5b2e-4cbd-4754-9ad3-8291c2c81ade

本示例从回收站中删除带有 ContainerIdb66f5b2e-4cbd-4754-9ad3-8291c2c81ade 的已删除容器,并将其永久删除。

参数

-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