Export (0) Print
Expand All

Get-SPODeletedSite

 

Applies to: SharePoint Online, Office 365

Topic Last Modified: 2014-09-18

Returns all deleted site collections from the Recycle Bin.

Get-SPODeletedSite [-IncludePersonalSite <SwitchParameter>] <COMMON PARAMETERS>
Get-SPODeletedSite -IncludeOnlyPersonalSite <SwitchParameter> <COMMON PARAMETERS>
COMMON PARAMETERS: [-Identity <SpoSitePipeBind>] [-Limit <String>]

--------EXAMPLE 1--------

Get-SPODeletedSite -Identity http://contoso.sharepoint.com/sites/marketing

This example returns the properties for the deleted site collection “http://contoso.sharepoint.com/sites/marketing” that is in the Recycle Bin.

--------EXAMPLE 2--------

Get-SPODeletedSite -IncludePersonalSite

This example returns all of the properties for the deleted sites, including Personal Sites, that are in the Recycle Bin.

--------EXAMPLE 3--------

Get-SPODeletedSite - IncludeOnlyPersonalSite

This example returns all of the properties for only the Personal sites, that are in the Recycle Bin.

The Get-SPODeletedSite cmdlet returns all deleted site collections that match the given criteria from the Recycle Bin.

By default the cmdlet only returns site and site collections that are not Personal Sites (My Sites). To include personal sites, use the IncludePersonalSite parameter. To return only Personal Sites, use the IncludeOnlyPersonalSite parameter.

NoteNote:
These two Switch Parameters are in different parameter sets, so you can only use either one of them but not both.
NoteNote:
This action does not restore these returned sites or site collection. It only returns their properties so that you can see what sites or site collections have been deleted. To restore the site or site collections, forward the results to the Restore-SPODeletedSite cmdlet in the pipeline.

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

 

Parameter Required Type Description

IncludeOnlyPersonalSite

Requiredl

System.Management.Automation.SwitchParameter

Use this switch parameter to only include Personal Sites in the returned results.

Identity

Optional

Microsoft.Online.SharePoint.PowerShell.SpoSitePipeBind

Specifies the URL of the deleted site collection to be returned.

IncludePersonalSite

Optional

System.Management.Automation.SwitchParameter

Use this switch parameter to include Personal Sites with the returned results.

Limit

Optional

System.String

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.

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