Applies to: Office 365, SharePoint Online

Topic Last Modified: 2016-06-21

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

This example returns the properties for the deleted site collection “” 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.

These two Switch Parameters are in different parameter sets, so you can only use either one of them but not both.
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.

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 must be a SharePoint Online global administrator and a site collection administrator for the deleted site collections to run the cmdlet.

SharePoint Online Management Shell


Parameter Required Type Description




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




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




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




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.