Forum Discussion
How to delete Group SPO site if O365Group was deleted?
- Mar 29, 2017
Hello Dean
u mean to set/add an owner to the orphaned Group Site and to delete it afterwards,right (or do you mean a different approach) ?
Set-SPOSite -Identity https://<name>/sites/<sitename> -owner xxxxxxx@xxxxx.onmicrosoft.com
Remove-SPOSite -Identity https://<name>/sites/<sitename> -noWait
NOW, this works but this didn't work last time because i got the message saying that i can't change the Owner of a GroupSite (using the -owner parameter was not allowed for managing a Group Site)
It seems that MS changed something now.
At least i can delete them know "manually"
Do you see in your environment orphaned GROUP SPO's or am i the only one ? :)
Yes. I tried to remove it via Remove-SPOSite....but it gives me '"Access Denied" although i'm Global Admin :)
In my tenant i see dozens of orphaned SPO Sites :(
I opened already a Support Ticket. Will let you know the outcome
- StefanFriedMar 29, 2017Iron Contributor
quick update:
i still have plenty of orphaned group spo sites which i can't delete as Global Admin
(Access denied message if i use Remove-SPOSite cmdlet)
MS support deleted "manually" some of my orphaned group sites...and closed the ticket (a root cause analysis is not covered with the normal support :(((
So i'm still facing the issue that if i delete a O365Group, the underlying SPO Group Site remains (as well the MS Team in case the O365 group was created via Teams).
Support told me that Remove-SPOSite should work but in fact it doesn't.
Does anyone have other ideas how i can delete orphaned Group Spo's without contacting MS Support ?
- Dean_GrossMar 29, 2017Silver ContributorGlobal admins don't have access to SPO site collections by default which may be causing this issue.
Have you tried to add an account to the Site Collection Admin group of the site and then use that account to run Remove-SPOsite?- StefanFriedMar 29, 2017Iron Contributor
Hello Dean
u mean to set/add an owner to the orphaned Group Site and to delete it afterwards,right (or do you mean a different approach) ?
Set-SPOSite -Identity https://<name>/sites/<sitename> -owner xxxxxxx@xxxxx.onmicrosoft.com
Remove-SPOSite -Identity https://<name>/sites/<sitename> -noWait
NOW, this works but this didn't work last time because i got the message saying that i can't change the Owner of a GroupSite (using the -owner parameter was not allowed for managing a Group Site)
It seems that MS changed something now.
At least i can delete them know "manually"
Do you see in your environment orphaned GROUP SPO's or am i the only one ? :)