Remove-SPOSite

将 SharePoint Online 网站集发送到 SharePoint Online 回收站。

语法

Default (默认值)

Remove-SPOSite
    -Identity <SpoSitePipeBind>
    [-NoWait]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

说明

cmdlet Remove-SPOSite 不会从网站集列表中永久删除网站集。 相反,已删除网站集将移至回收站。 可以使用 Restore-SPODeletedSitecmdlet 从回收站还原网站集。 若要永久删除网站集,请先使用 cmdlet 将网站集移动到回收站, Remove-SPOSite 然后使用 cmdlet 将其从回收 Remove-SPODeletedSite 站中删除。

您必须至少是 SharePoint Online 管理员,并且必须是网站集管理员才能运行 cmdlet。

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

示例

示例 1

Remove-SPOSite -Identity https://contoso.sharepoint.com/sites/site1 -NoWait

此示例立即从网站集列表中删除名为 https://contoso.sharepoint.com/sites/site1 的网站集,并将其移动到回收站。

参数

-Confirm

适用:SharePoint Online

提示你在运行 cmdlet 之前进行确认。

参数属性

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

参数集

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

-Identity

适用:SharePoint Online

指定要删除的网站集的 URL。

参数属性

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

参数集

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

-NoWait

适用:SharePoint Online

指定立即继续执行脚本。

参数属性

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

参数集

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

-WhatIf

适用:SharePoint Online

显示在 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