Export (0) Print
Expand All

Remove-SPOSite

Published: July 16, 2012

Applies to:  Office 365 | SharePoint Online 

Sends a SharePoint Online site collection to the SharePoint Online Recycle Bin.

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

Parameters

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

Specifies to continue executing script immediately.

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.

Detailed Description

The Remove-SPOSite cmdlet does not delete a site collection from the site collections list permanently. Instead, the removed site collection is moved to the Recycle Bin. You can use the Restore-SPODeletedSitecmdlet to restore a site collection from the Recycle Bin. To delete a site collection permanently, first move the site collection to the Recycle Bin by using the Remove-SPOSite cmdlet, and then delete it from the Recycle Bin by using the Remove-SPODeletedSite cmdlet.

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

Input Types

Return Types

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

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

This example immediately removes the site collection named https://contoso.sharepoint.com/sites/site1 from the site collections list and moves it to the Recycle Bin.

Change History

Date Description

July 16, 2012

Initial publication

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft