Forum Discussion

mgmjtech2120's avatar
mgmjtech2120
Copper Contributor
Oct 04, 2023

Delete MS Teams but SharePoint site remain active

When a site owner deletes MS Teams, the SharePoint site remains active because we have a retention policy enabled for SharePoint sites.

I ran a report from Teams and SharePoint via the admin center, usage report, and PowerShell to list out the deleted Teams. However, the report in Teams only shows deleted Teams but no associated SharePoint URL or name. The SharePoint reports, show the sites are still connected to Teams. Microsoft says this is by design (BS).

Needs help to get a report on the SharePoint sites that were associated with deleted Teams.

 

 

 

 

  • Hello,
    You could query the IsTeamsConnected property of Get-SPOSite result, you could then find if there is a team by that name using the name of the site (Get-Team) to check if there is one or not, however, if the team gets recreated with the same name you could have wrong results
    • mgmjtech2120's avatar
      mgmjtech2120
      Copper Contributor

      AndresGorzelany 

       

      thanks for the reply. Yes  you can do that and manually compare them but I have thousand of Teams that were deleted. There has to be a better way to identify those SharePoint sites that were associated to (deleted) Teams. 

Resources