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
 
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.
Just to make this clear to everyone, this may be a better explanation of what I did.
(And by the way, how do you open a ticket to Support?)
I created a test team in Teams Client UI
That automatically creates an Office 365 Group which is exposed in Outlook under Groups.
It also automatically creates a SharePoint site called http://xxxx.xxxx.com/sites/{TeamSiteName}
If you see in the attached image, there is an example of what I then tried to do. I am in the Teams client UI, I right click on a team I had created, then select "Delete Team". The Office 365 Group name disappears from Outlook as expected. But the SharePoint site called http://xxxx.xxxx.com/sites/{TeamSiteName} was not deleted, which I did not expect. I assumed the SharePoint site would have been deleted when I deleted the Team.
So, it sounds like there is agreement that this sounds like a bug. I just wanted to make sure it was clear what I had done and had expected.
So how do I open a ticket to Support?
- Betty StolwykApr 19, 2017Brass Contributor
Have entered this in Team User Voice as a development suggestion.
https://microsoftteams.uservoice.com/forums/555103-public/suggestions/18972259-delete-an-o365-team
- Betty StolwykJan 06, 2018Brass Contributor
I also posted an update in the Microsoft Teams Uservoice to say that it looks like this has been fixed.
 - Clifford KennedyJan 05, 2018Iron Contributor
Hi Betty Stolwyk - we were seeing this a few months back, but testing again today it is working for us, be it slow for the SPO Site and MBX to be removed, they do go within 30mins (as others have shared above).
 - Marie-Hélène GUILBAUDApr 24, 2017Copper Contributor
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