Published: July 16, 2012
Applies to: Office 365 | SharePoint Online
Returns all deleted site collections from the Recycle Bin.
Get-SPODeletedSite [[-Identity] <SpoSitePipeBind>] [-Limit <String>]
Specifies the URL of the deleted site collection.
Specifies the maximum number of site collections to return. It can be any number. To retrieve all site collections, use ALL. The default value is 200.
The Get-SPODeletedSite cmdlet returns all deleted site collections that match the given criteria from the Recycle Bin.
You must be a SharePoint Online global administrator and a site collection administrator for the deleted site collections to run the cmdlet.
Get-SPODeletedSite -Identity http://contoso.sharepoint.com/sites/marketing
This example restores a site collection http://contoso.sharepoint.com/sites/marketing from the Recycle Bin.
July 16, 2012