Forum Discussion
mgmjtech2120
Oct 04, 2023Copper Contributor
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,...
Oct 05, 2023
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
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
- mgmjtech2120Oct 23, 2023Copper Contributor
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.