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
 
@Clifford - I gave this another go with the most current Teams Client Web UI and all is well. I created a new Team and verified that it built an associated SharePoint site, an O365 Group (visible in Outlook from the Group drop-down and visible in Azure Active Directory Groups), and Exchange Group mailbox. (@Ellya - I forgot to check on the calendar).
After verifying that all the expected objects had also been created, I proceeded to delete the Team through the Team client Web UI. (right-click Team name, and select Delete from drop-down menu)
A warning dialog box popped up:
Delete "xxxx" team
Are you sure you want to delete the team "xxxxx"? All channels, chats, files, and the Office 365 Group for this team will be deleted.
[checkbox] I understand that everything will be deleted.
buttons: [Cancel] [Delete Team]
I checked the checkbox and clicked "Delete Team" button.
Going back I verified that all associated objects had been deleted : SharePoint site, the O365 Group (no longer visible in Outlook from the Group drop-down nor in Azure Active Directory Groups), and Exchange Group mailbox.