Restore-SPODeletedSite

 

Applies to: Office 365, SharePoint Online

Topic Last Modified: 2016-06-21

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

Restore-SPODeletedSite [-Identity] <SpoSitePipeBind> [-NoWait <SwitchParameter>]

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

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.

SharePoint Online Management Shell

 

Parameter Required Type Description

Identity

Required

Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind

Specifies the URL of the site collection to restore.

NoWait

Optional

System.Management.Automation.SwitchParameter

Specifies to continue executing script immediately.

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

Restore-SPODeletedSite -Identity https://contoso.sharepoint.com/sites/arecycledsite

This example restores a SharePoint Online deleted site collection named HYPERLINK "https://contoso.sharepoint.com/sites/arecycledsite" https://contoso.sharepoint.com/sites/arecycledsite from the Recycle Bin.

Show: