Forum Discussion
Deleting a Team from within Teams client UI seems to leave the associated SharePoint group site
- Jan 09, 2018
Further investigation shows for our E2 tenant, when you delete a Team via the Teams App, the O365 Group gets deleted, but the corresponding SharePoint site is given a LockState of "No Access", so even if you have permission to the site, it refuses to display in the browser. To see all these sites on your tenant, use the following PowerShell:
get-SPOSite | Select URL, LockState | Where lockstate -eq 'NoAccess'
To unlock the site, so you can browse it again, use this:
set-SPOSite -identity <Site URL> -lockstate "unlock"
And if you want to then delete it:
Remove-SPOSite -identity <Site URL>
Hope that helps
- Betty StolwykApr 16, 2017Brass Contributor
Hello Juan Carlos, thank you for your answer. That does not seem to be my situation. The SharePoint site associated with the deleted Team is still there even more than 24 hours later.
- Apr 16, 2017Agree with Paul, that's not correct...I recommend you to open a ticket so support can see what's happening
- Marie-Hélène GUILBAUDApr 15, 2017Copper ContributorYes I confirm Juan Carlos says. When I delete a office365 group I need to wait some times (less than 30 mn) before to see the group site appears deleted.
- Betty StolwykApr 16, 2017Brass Contributor
Hello Marie,
I was not deleting the SP site directly, I was deleting a Team from within the Team UI and I had expected the associated SharePoint site to be deleted in the same process automatically. However, the SP site is still there. I can delete it manually, but I was not sure if this was a bug in the delete Team process or not.
- DeletedApr 16, 2017
Seems like a bug to me. did you create the team before GA of teams? normally if you delete the site everthing has to be deleted.