Remove-SPODeletedSite

 

Applies to: Office 365, SharePoint Online

Topic Last Modified: 2016-07-13

Removes a SharePoint Online deleted site collection from the Recycle Bin.

Remove-SPODeletedSite -Identity <SpoSitePipeBind> [-Confirm [<SwitchParameter>]] [-NoWait <SwitchParameter>] [-WhatIf [<SwitchParameter>]]

--------EXAMPLE--------

Remove-SPODeletedSite -Identity https://contoso.sharepoint.com/sites/sitetoremove

This example removes a SharePoint Online deleted site collection named https://contoso.sharepoint.com/sites/sitetoremove from the Recycle Bin and deletes it permanently.

The Remove-SPODeletedSite cmdlet permanently removes a SharePoint Online deleted site collection from the Recycle Bin.

With version 5361 of the SharePoint Online Management Shell, you can manage all template types which now includes group and video sites along with personal and team sites.

You have to be a SharePoint Online global administrator and site collection administrator permissions to run the cmdlet.

SharePoint Online Management Shell

 

Parameter Required Type Description

Identity

Required

Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind

Specifies the URL of the site collection to remove.

Confirm

Optional

System.Management.Automation.SwitchParameter

Prompts you for confirmation before executing the command. For more information, type the following command: get-help about_commonparameters

NoWait

Optional

System.Management.Automation.SwitchParameter

PARAMVALUE: SwitchParameter

WhatIf

Optional

System.Management.Automation.SwitchParameter

Displays a message that describes the effect of the command instead of executing the command. For more information, type the following command: get-help about_commonparameters

Show: