SharePoint orphan sites cleanup, how to figure out and how do we clear it?

sns 9,246 Reputation points
2021-03-16T05:20:44.72+00:00

SharePoint orphan sites cleanup, how to figure out orphan sites and how do we clear it from sharepoint farm?
Please help

Microsoft 365 and Office | SharePoint Server | For business
{count} votes

1 answer

Sort by: Most helpful
  1. Elsie Lu_MSFT 9,801 Reputation points
    2021-03-17T06:08:20.467+00:00

    Hi @sns ,

    You could first use the Test-SPContentDatabase command to check if there exsit orphan sites.

    Test-SPContentDatabase -name WSS_Content_DB -webapplication https://sitename  
    

    Similar posts for your reference:
    Find Orphan Sites Under Specific Content Database - Sharepoint 2013 Powershell
    Delete orphan site collection


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.