Display All Deleted Site Collections
Scenario/Problem: You need to obtain a deleted site collection reference and therefore need a listing of deleted site collections regardless of content database.
Solution: Use the Get-SPDeletedSite
cmdlet without any parameters.
To obtain a deleted site collection reference object, you need to find the URL (Identity
) or Site Id of the site collection. Using the Get-SPDeletedSite
cmdlet displays all deleted site collections, as shown in Figure 8.2.
Get PowerShell™ for SharePoint® 2013 How-To now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.