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
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.
- Betty StolwykApr 17, 2017Brass Contributor
Paul,
No, I did it recently. And just to be clear, I was not deleting the site, I was deleting the team from within the client UI, then expecting the SP site to have automatically been deleted, which did not happen. I am going to attach an image because I don't think I made myself very clear.
- Ellya GoldJan 04, 2018Copper ContributorYou made yourself perfectly clear to me :) ...you deleted the "Team" (Not Team Site) from the Teams UI and the associated SharePoint Modern Site didn't delete too. I was wondering if the AD Group and Exchange Mailbox and Calendar also deleted.