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
Have entered this in Team User Voice as a development suggestion.
https://microsoftteams.uservoice.com/forums/555103-public/suggestions/18972259-delete-an-o365-team
Hello Betty,
Like the others said, the best way is to open a ticket to support. It seems a bug with the client UI. Often, when a bug is identified with a ticket, the fix get faster.
It's OK for me when you delete the office 365 group on the admin center UI. I never delete the site directly. It's not fast but it works.
Have a nice day