共用方式為


Remove-SPOSite

將 SharePoint Online 網站集合傳送至 SharePoint Online 回收站。

語法

Default (預設值)

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

Description

Cmdlet Remove-SPOSite 不會永久刪除網站集合清單中的網站集合。 相反地,移除的網站集合會移至回收站。 您可以使用 Cmdlet Restore-SPODeletedSite從回收站還原網站集合。 若要永久刪除網站集合,請先使用 Remove-SPOSite Cmdlet 將網站集合移至回收站,然後使用 Remove-SPODeletedSite Cmdlet 將它從回收站中刪除。

您必須至少是 SharePoint Online 系統管理員,而且必須是網站集合管理員,才能執行 Cmdlet。

如需有關適用於 SharePoint Online 的 Windows PowerShell 權限和最新資訊,請參閱位於 SharePoint Online Management Shell 簡介的線上文件。

範例

範例 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